summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-07-02 14:18:00 +0000
committerOlle Johansson <oej@edvina.net>2006-07-02 14:18:00 +0000
commit765e420458c4ccdf63cf93ad1c9f85328560452e (patch)
tree1b3b410ee591d2ff17d43e1274675b8b9d8a8399 /channels
parentb971f6597831440aa6a1ff01dc8d8008b02d53cb (diff)
tell the other side that we're using 20 ms packetization for iLBC
- we need to investigate support for refusing offers of 30 ms (like the Nokia e-series) or supporting it. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 243d56a93..2a290219f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5575,9 +5575,14 @@ static void add_codec_to_sdp(const struct sip_pvt *p, int codec, int sample_rate
ast_build_string(a_buf, a_size, "a=rtpmap:%d %s/%d\r\n", rtp_code,
ast_rtp_lookup_mime_subtype(1, codec),
sample_rate);
- if (codec == AST_FORMAT_G729A)
+ 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_ILBC) {
+ /* Add information about us using only 20 ms packetization */
+ ast_build_string(a_buf, a_size, "a=fmtp:%d mode=20\r\n", rtp_code);
+
+ }
}
/*! \brief Get Max T.38 Transmision rate from T38 capabilities */