From d481bf5effdcf3c3eacf353768b57f2c4f962805 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 23 Aug 2011 12:38:22 -0500 Subject: [PATCH] FS-3514 --resolve --- src/mod/endpoints/mod_sofia/sofia_glue.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 8b4c5e2b41..5ab6bdcc66 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -4823,6 +4823,12 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s } } + if (!best_te && (sofia_test_pflag(tech_pvt->profile, PFLAG_LIBERAL_DTMF) || sofia_test_flag(tech_pvt, TFLAG_LIBERAL_DTMF))) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, + "No 2833 in SDP. Liberal DTMF mode adding %d as telephone-event.", tech_pvt->profile->te); + best_te = tech_pvt->profile->te; + } + if (best_te) { if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) { te = tech_pvt->te = (switch_payload_t) best_te;