]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4146 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 26 Apr 2012 13:10:30 +0000 (08:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 26 Apr 2012 13:10:30 +0000 (08:10 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 0d7f0b526aa1a28a6a02d8013506df81ff3fbb15..37f840cdddf101e853516dc5e066f7a4b017d621 100644 (file)
@@ -3139,10 +3139,6 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
                sofia_set_flag_locked(tech_pvt, TFLAG_SECURE);
        }
 
-       if ((var = switch_channel_get_variable(tech_pvt->channel, "sip_liberal_dtmf")) && switch_true(var)) {
-               sofia_set_flag_locked(tech_pvt, TFLAG_LIBERAL_DTMF);
-       }
-
        if (switch_channel_test_flag(tech_pvt->channel, CF_PROXY_MODE)) {
                status = SWITCH_STATUS_SUCCESS;
                goto end;
@@ -4486,6 +4482,10 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
                }
        }
 
+       if ((val = switch_channel_get_variable(tech_pvt->channel, "sip_liberal_dtmf")) && switch_true(val)) {
+               sofia_set_flag_locked(tech_pvt, TFLAG_LIBERAL_DTMF);
+       }
+
        if ((m = sdp->sdp_media) && 
                (m->m_mode == sdp_sendonly || m->m_mode == sdp_inactive || 
                 (m->m_connections && m->m_connections->c_address && !strcmp(m->m_connections->c_address, "0.0.0.0")))) {