]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9244 #resolve [RFC2833 payload_type offered is ignored]
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Jun 2016 20:48:01 +0000 (15:48 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Jun 2016 20:48:01 +0000 (15:48 -0500)
src/switch_core_media.c

index 93bc8f4fb0925b8b3c18f08abc4f14d59f217cd3..f1295b0ee55d84077fe81db6a443a7929af947d7 100644 (file)
@@ -4668,8 +4668,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
 
                        if (best_te) {
                                smh->mparams->te_rate = best_te_rate;
-
-                               if (smh->mparams->dtmf_type == DTMF_AUTO) {
+                               
+                               if (smh->mparams->dtmf_type == DTMF_AUTO || smh->mparams->dtmf_type == DTMF_2833 || 
+                                       switch_media_handle_test_media_flag(smh, SCMF_LIBERAL_DTMF)) {
                                        if (sdp_type == SDP_TYPE_REQUEST) {
                                                smh->mparams->te = smh->mparams->recv_te = (switch_payload_t) best_te;
                                                switch_channel_set_variable(session->channel, "dtmf_type", "rfc2833");