]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4769 should work now
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 27 Oct 2012 16:32:40 +0000 (11:32 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 27 Oct 2012 16:33:06 +0000 (11:33 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 105236cdbd83a52423bbab185214613d3a89f808..15b6eb0eeb04b67ba0a093b47abd1f8798547137 100644 (file)
@@ -486,6 +486,10 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, switch
                tech_pvt->session_id = tech_pvt->owner_id;
        }
 
+       if (switch_true(switch_channel_get_variable_dup(tech_pvt->channel, "drop_dtmf", SWITCH_FALSE, -1))) {
+               sofia_set_flag(tech_pvt, TFLAG_DROP_DTMF);
+       }
+
        tech_pvt->session_id++;
 
        if ((tech_pvt->profile->ndlb & PFLAG_NDLB_SENDRECV_IN_SESSION) ||
@@ -969,10 +973,6 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t *
 
        switch_core_session_set_private(session, tech_pvt);
 
-       if (switch_true(switch_channel_get_variable_dup(tech_pvt->channel, "drop_dtmf", SWITCH_FALSE, -1))) {
-               sofia_set_flag(tech_pvt, TFLAG_DROP_DTMF);
-       }
-
 
        if (channame) {
                sofia_glue_set_name(tech_pvt, channame);