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

src/mod/endpoints/mod_sofia/sofia_glue.c

index b15e1a8b16287d74d0592a36444b8118e0340c37..5f6d9b3e6d1d17a49134eaa38aa601c8b7c1a8e9 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_channel_test_flag(tech_pvt->channel, CF_OUTBOUND) && !(tech_pvt->profile->pflags & PFLAG_SUPPRESS_CNG)) {
+       if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND) && !(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) {