aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 22:20:44 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 22:20:44 +0000
commita5dab616ab75f1e95befb50250d24c067d757bd3 (patch)
treeb01b5a9252fa9e08b5fcc2064319f5ebb41d5b73 /channels
parent6d7866df5928cc9a412c8bf71bc8f5d8e6f39ff4 (diff)
Merged revisions 73547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73547 | kpfleming | 2007-07-05 17:11:51 -0500 (Thu, 05 Jul 2007) | 2 lines we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73548 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 858b37a95..789bb1bc0 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6013,6 +6013,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);
} else if (codec == AST_FORMAT_ILBC) {
/* Add information about us using only 20/30 ms packetization */
ast_build_string(a_buf, a_size, "a=fmtp:%d mode=%d\r\n", rtp_code, fmt.cur_ms);