don't put CN in sdp answer if it was not in the offer.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10120 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-10-23 01:14:07 +00:00
parent 9bc126b083
commit 69bd6a54d0
2 changed files with 4 additions and 3 deletions
+1 -1
View 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 (!(tech_pvt->profile->pflags & PFLAG_SUPPRESS_CNG)) {
if (switch_channel_test_flag(tech_pvt->channel, CF_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) {