[asterisk-commits] kpfleming: branch 1.2 r73547 - /branches/1.2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 5 17:11:52 CDT 2007


Author: kpfleming
Date: Thu Jul  5 17:11:51 2007
New Revision: 73547

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73547
Log:
we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?view=diff&rev=73547&r1=73546&r2=73547
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Thu Jul  5 17:11:51 2007
@@ -4497,6 +4497,9 @@
 	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,




More information about the asterisk-commits mailing list