]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert
authorMichael Jerris <mike@jerris.com>
Thu, 23 Oct 2008 04:54:38 +0000 (04:54 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 23 Oct 2008 04:54:38 +0000 (04:54 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10128 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index 34f4b5992680b1ca47ddad8920f2b22fd00d36c9..cc68a60a3d3c10b17f4beb28ad8c160f1ae5a9ca 100644 (file)
@@ -2114,7 +2114,6 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                tech_pvt->dest_to = tech_pvt->dest;
        }
 
-       switch_set_flag_locked(tech_pvt, TFLAG_OUTBOUND);
        sofia_glue_attach_private(nsession, profile, tech_pvt, dest);
 
        if (tech_pvt->local_url) {
@@ -2129,6 +2128,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
        caller_profile->destination_number = switch_core_strdup(caller_profile->pool, dest);
        switch_channel_set_caller_profile(nchannel, caller_profile);
        switch_channel_set_flag(nchannel, CF_OUTBOUND);
+       switch_set_flag_locked(tech_pvt, TFLAG_OUTBOUND);
        switch_clear_flag_locked(tech_pvt, TFLAG_LATE_NEGOTIATION);
        if (switch_channel_get_state(nchannel) == CS_NEW) {
                switch_channel_set_state(nchannel, CS_INIT);
index 5f6d9b3e6d1d17a49134eaa38aa601c8b7c1a8e9..f481ecc8b57ba5f917be30fc10c59693e019c333 100644 (file)
@@ -413,7 +413,7 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t *
 
        tech_pvt->dtmf_type = profile->dtmf_type;
 
-       if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND) && !(tech_pvt->profile->pflags & PFLAG_SUPPRESS_CNG)) {
+       if (!(tech_pvt->profile->pflags & PFLAG_SUPPRESS_CNG)) {
                if (tech_pvt->bcng_pt) {
                        tech_pvt->cng_pt = tech_pvt->bcng_pt;
                } else if (!tech_pvt->cng_pt) {