Package: release.debian.org Severity: normal Tags: stretch User: release.debian....@packages.debian.org Usertags: pu
Hi, I'd like to upload the attached update to stretch fixing a bug with transcoding in the deprecated, but still widely used chan_sip channel driver. The fix is a cherry-picked upstream commit, already in sid and buster. The reporter has verified that this commit fixes his issue. debdiff against the security release is attached. Best Regards, Bernhard
diff -Nru asterisk-13.14.1~dfsg/debian/changelog asterisk-13.14.1~dfsg/debian/changelog --- asterisk-13.14.1~dfsg/debian/changelog 2017-09-02 23:21:14.000000000 +0200 +++ asterisk-13.14.1~dfsg/debian/changelog 2017-09-12 13:09:19.000000000 +0200 @@ -1,3 +1,9 @@ +asterisk (1:13.14.1~dfsg-2+deb9u2) stretch; urgency=medium + + * Fix one-way audio with chan_sip when transcoding (Closes: #875450) + + -- Bernhard Schmidt <be...@debian.org> Tue, 12 Sep 2017 13:09:19 +0200 + asterisk (1:13.14.1~dfsg-2+deb9u1) stretch-security; urgency=high * CVE-2017-14099 / AST-2017-005 diff -Nru asterisk-13.14.1~dfsg/debian/patches/875450-chan_sip-oneway-audio.patch asterisk-13.14.1~dfsg/debian/patches/875450-chan_sip-oneway-audio.patch --- asterisk-13.14.1~dfsg/debian/patches/875450-chan_sip-oneway-audio.patch 1970-01-01 01:00:00.000000000 +0100 +++ asterisk-13.14.1~dfsg/debian/patches/875450-chan_sip-oneway-audio.patch 2017-09-12 13:09:19.000000000 +0200 @@ -0,0 +1,33 @@ +From: Vitezslav Novy <a...@vnovy.net> +Date: Mon, 8 May 2017 20:40:47 +0200 +Subject: [PATCH] chan_sip: Change sip_get_codec() to return correct codec list +Origin: upstream, https://github.com/asterisk/asterisk/commit/93b7f84c1ac61208607ec6f7360b594dee921a1b +Bug: https://issues.asterisk.org/jira/browse/ASTERISK-26143 +Bug-Debian: https://bugs.debian.org/875450 + +Return cahnnel nativeformats to fix bridge technology selection process. +Same approach as in pjsip module. + +ASTERISK-26143 +Reported-by: Henning Holtschneider + +Change-Id: I64e863753954d6ad67a9e722df2ebc328705ad48 +--- + channels/chan_sip.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/channels/chan_sip.c b/channels/chan_sip.c +index e7c15bcbd0c..930dc0f6756 100644 +--- a/channels/chan_sip.c ++++ b/channels/chan_sip.c +@@ -33588,9 +33588,7 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance *i + + static void sip_get_codec(struct ast_channel *chan, struct ast_format_cap *result) + { +- struct sip_pvt *p = ast_channel_tech_pvt(chan); +- +- ast_format_cap_append_from_cap(result, !ast_format_cap_count(p->peercaps) ? p->caps : p->peercaps, AST_MEDIA_TYPE_UNKNOWN); ++ ast_format_cap_append_from_cap(result, ast_channel_nativeformats(chan), AST_MEDIA_TYPE_UNKNOWN); + } + + static struct ast_rtp_glue sip_rtp_glue = { diff -Nru asterisk-13.14.1~dfsg/debian/patches/series asterisk-13.14.1~dfsg/debian/patches/series --- asterisk-13.14.1~dfsg/debian/patches/series 2017-09-02 23:21:14.000000000 +0200 +++ asterisk-13.14.1~dfsg/debian/patches/series 2017-09-12 13:09:19.000000000 +0200 @@ -43,6 +43,9 @@ 859911-pjsip-set-rtp-source-address.patch 859911-pjsip-set-rtp-source-address-part2.patch +# Bug#875450 - chan_sip: One way audio when transcoding +875450-chan_sip-oneway-audio.patch + AST-2017-004.patch AST-2017-005-13.13.diff AST-2017-006-13.diff