From: Kevin P. Fleming Date: Thu, 5 Jul 2007 22:11:51 +0000 (+0000) Subject: we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for... X-Git-Tag: 1.2.21~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=585de1223ed74d8db740bfcd8f873332db017df0;p=thirdparty%2Fasterisk.git we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@73547 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 489e64f87c..e8ca9dd0c1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4497,6 +4497,9 @@ static void add_codec_to_sdp(const struct sip_pvt *p, int codec, int sample_rate if (codec == AST_FORMAT_G729A) /* Indicate that we don't support VAD (G.729 annex B) */ ast_build_string(a_buf, a_size, "a=fmtp:%d annexb=no\r\n", rtp_code); + else if (codec == AST_FORMAT_G723_1) + /* Indicate that we don't support VAD (G.723.1 annex A) */ + ast_build_string(a_buf, a_size, "a=fmtp:%d annexa=no\r\n", rtp_code); } static void add_noncodec_to_sdp(const struct sip_pvt *p, int format, int sample_rate,