]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] Deprecate RFC 2833 Line flash event code 16 according to RFC 4733
authorAndrey Volk <andywolk@gmail.com>
Wed, 30 Jun 2021 17:01:11 +0000 (20:01 +0300)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:49 +0000 (22:00 +0300)
src/switch_core_media.c

index d276bc4f1e84d7e4847864a3a0e376754e50749d..8201c1d86cfc85f6326ad72727c3c4c81626cc9f 100644 (file)
@@ -10011,7 +10011,7 @@ static void generate_m(switch_core_session_t *session, char *buf, size_t buflen,
                                switch_snprintf(buf + strlen(buf), buflen - strlen(buf), "a=rtpmap:%d telephone-event/%d\r\n",
                                                                smh->dtmf_ianacodes[i], smh->rates[i]);
                        } else {
-                               switch_snprintf(buf + strlen(buf), buflen - strlen(buf), "a=rtpmap:%d telephone-event/%d\r\na=fmtp:%d 0-16\r\n",
+                               switch_snprintf(buf + strlen(buf), buflen - strlen(buf), "a=rtpmap:%d telephone-event/%d\r\na=fmtp:%d 0-15\r\n",
                                                                smh->dtmf_ianacodes[i], smh->rates[i], smh->dtmf_ianacodes[i]);
                        }
                }
@@ -10728,7 +10728,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
                                switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=rtpmap:%d telephone-event/%d\r\n",
                                                                smh->mparams->te, smh->mparams->te_rate);
                        } else {
-                               switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=rtpmap:%d telephone-event/%d\r\na=fmtp:%d 0-16\r\n",
+                               switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=rtpmap:%d telephone-event/%d\r\na=fmtp:%d 0-15\r\n",
                                                                smh->mparams->te, smh->mparams->te_rate, smh->mparams->te);
                        }
                }