From 01e06b601e89e733cd026a36fa9cbac663a229f3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 18 Apr 2013 16:29:06 -0500 Subject: [PATCH] FS-5322 stable equiv --- src/mod/endpoints/mod_sofia/mod_sofia.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 4a782ecb0c..622967d839 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1522,6 +1522,13 @@ static switch_status_t sofia_send_dtmf(switch_core_session_t *session, const swi switch_assert(tech_pvt != NULL); if (sofia_test_flag(tech_pvt, TFLAG_DROP_DTMF)) { + const char *file = switch_channel_get_variable_dup(tech_pvt->channel, "drop_dtmf_masking_file", SWITCH_FALSE, -1); + + if (!zstr(file)) { + switch_ivr_broadcast(switch_core_session_get_uuid(session), file, SMF_ECHO_ALEG); + } + + return SWITCH_STATUS_SUCCESS; }