From 445277b00492957f42a494ac09d70afc88d43da8 Mon Sep 17 00:00:00 2001 From: Jiri Slachta Date: Sun, 1 Feb 2015 22:48:13 +0100 Subject: [PATCH] asterisk-11.x: fix srtp when key lifetime is specified Signed-off-by: Jiri Slachta --- net/asterisk-11.x/Makefile | 2 +- .../patches/030-srtp-fix-key-lifetime.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 net/asterisk-11.x/patches/030-srtp-fix-key-lifetime.patch diff --git a/net/asterisk-11.x/Makefile b/net/asterisk-11.x/Makefile index 8e3d412..120fb83 100644 --- a/net/asterisk-11.x/Makefile +++ b/net/asterisk-11.x/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk11 PKG_VERSION:=11.15.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/ diff --git a/net/asterisk-11.x/patches/030-srtp-fix-key-lifetime.patch b/net/asterisk-11.x/patches/030-srtp-fix-key-lifetime.patch new file mode 100644 index 0000000..fbebb1e --- /dev/null +++ b/net/asterisk-11.x/patches/030-srtp-fix-key-lifetime.patch @@ -0,0 +1,12 @@ +--- a/channels/sip/sdp_crypto.c ++++ b/channels/sip/sdp_crypto.c +@@ -252,8 +252,7 @@ + lifetime = strsep(&info, "|"); + + if (lifetime) { ++ ast_log(LOG_NOTICE, "Crypto life time unsupported: %s. Ignoring.\n", attr); +- ast_log(LOG_NOTICE, "Crypto life time unsupported: %s\n", attr); +- continue; + } + + found = 1; -- 2.30.2