]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5322 stable equiv
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 18 Apr 2013 21:29:06 +0000 (16:29 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 18 Apr 2013 21:29:06 +0000 (16:29 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 4a782ecb0c0b8a2f0a4d03b17ab0177429805733..622967d839afd57f8d6f06bf4c0e513f8c8fa0c4 100644 (file)
@@ -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;
        }