[asterisk-commits] trunk r36623 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jul 2 07:18:00 MST 2006


Author: oej
Date: Sun Jul  2 09:18:00 2006
New Revision: 36623

URL: http://svn.digium.com/view/asterisk?rev=36623&view=rev
Log:
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.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=36623&r1=36622&r2=36623&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jul  2 09:18:00 2006
@@ -5575,9 +5575,14 @@
 	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 */



More information about the asterisk-commits mailing list