asterisk-11.x: fix srtp when key lifetime is specified
authorJiri Slachta <slachta@cesnet.cz>
Sun, 1 Feb 2015 21:48:13 +0000 (22:48 +0100)
committerJiri Slachta <slachta@cesnet.cz>
Sun, 1 Feb 2015 21:48:13 +0000 (22:48 +0100)
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
net/asterisk-11.x/Makefile
net/asterisk-11.x/patches/030-srtp-fix-key-lifetime.patch [new file with mode: 0644]

index 8e3d4129e847caf574f4bb380f26ffe6740d4d6a..120fb837880e4b217587eb66cf6e4f0f6ae7e090 100644 (file)
@@ -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 (file)
index 0000000..fbebb1e
--- /dev/null
@@ -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;