From 27e4615c8c8198ad07c872e207e996cbd4bb6c44 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 10 Jun 2016 15:48:01 -0500 Subject: [PATCH] FS-9244 #resolve [RFC2833 payload_type offered is ignored] --- src/switch_core_media.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 93bc8f4fb0..f1295b0ee5 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -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");