]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
format: Update the maximum packetization time for iLBC 30. 63/1463/2
authorAlexander Traud <pabstraud@compuserve.com>
Wed, 21 Oct 2015 13:06:29 +0000 (15:06 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Wed, 21 Oct 2015 17:11:17 +0000 (12:11 -0500)
In September 2006, the maximum packetization time (ptime) were set to such a
low value, packetization was disabled for many codecs actually. This was fixed
for many codecs but not for iLBC 30. This enables packetization for iLBC which
can be enabled for example via allow=ilbc:60,gsm,alaw,ulaw in the file sip.conf.

ASTERISK-7803

Change-Id: I3ac61235097808216b6a15a1c7e321b3fdeb7ff1

channels/chan_sip.c
main/format.c

index 53f802376df5ddedb846709f5a3c7a2438dace51..39d9f00a41f6916bc76b0dc32711cc6805a9bc78 100644 (file)
@@ -12696,10 +12696,6 @@ static void add_codec_to_sdp(const struct sip_pvt *p,
                /* Indicate that we don't support VAD (G.723.1 annex A) */
                ast_str_append(a_buf, 0, "a=fmtp:%d annexa=no\r\n", rtp_code);
                break;
-       case AST_FORMAT_ILBC:
-               /* Add information about us using only 20/30 ms packetization */
-               ast_str_append(a_buf, 0, "a=fmtp:%d mode=%d\r\n", rtp_code, fmt.cur_ms);
-               break;
        case AST_FORMAT_SIREN7:
                /* Indicate that we only expect 32Kbps */
                ast_str_append(a_buf, 0, "a=fmtp:%d bitrate=32000\r\n", rtp_code);
index e3c5bc5065f04370018327001b5d3f9148768e2c..80f8de86c0dc38bc22d7c7740a8d6e358c351c6a 100644 (file)
@@ -1049,7 +1049,7 @@ static int format_list_init(void)
        format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_G729A, 0), "g729", 8000, "G.729A", 10, 10, 230, 10, 20, AST_SMOOTHER_FLAG_G729, 0);   /*!< Binary commercial distribution */
        format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_SPEEX, 0), "speex", 8000, "SpeeX", 10, 10, 60, 10, 20, 0, 0);          /*!< codec_speex.c */
        format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_SPEEX16, 0), "speex16", 16000, "SpeeX 16khz", 10, 10, 60, 10, 20, 0, 0);   /*!< codec_speex.c */
-       format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_ILBC, 0), "ilbc", 8000, "iLBC", 50, 30, 30, 30, 30, 0, 0);                 /*!< codec_ilbc.c */ /* inc=30ms - workaround */
+       format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_ILBC, 0), "ilbc", 8000, "iLBC", 50, 30, 300, 30, 30, 0, 0);                /*!< codec_ilbc.c */
        format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_G726_AAL2, 0), "g726aal2", 8000, "G.726 AAL2", 40, 10, 300, 10, 20, 0, 0); /*!< codec_g726.c */
        format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_G722, 0), "g722", 16000, "G722", 80, 10, 150, 10, 20, 0, 0);               /*!< codec_g722.c */
        format_list_add_static(ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR16, 0), "slin16", 16000, "16 bit Signed Linear PCM (16kHz)", 320, 10, 70, 10, 20, AST_SMOOTHER_FLAG_BE, 0);/*!< Signed linear (16kHz) */