diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-05 22:11:51 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-05 22:11:51 +0000 |
commit | f1b3a211f8606ac87e2af23de1f74aeb5b52598b (patch) | |
tree | caacf26167848ba0122b90b34caef9fafe71e06d /channels | |
parent | c36e5da4f59992eeb6aa0eb1a93c336881e0179c (diff) |
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.2@73547 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 489e64f87..e8ca9dd0c 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, |