]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix cng bs
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Oct 2008 22:05:00 +0000 (22:05 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Oct 2008 22:05:00 +0000 (22:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10135 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index f481ecc8b57ba5f917be30fc10c59693e019c333..49ef74e6e8705c6c15865657cfe47fa8d6fe0b49 100644 (file)
@@ -2329,7 +2329,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
                                }
 
                                if (!(tech_pvt->profile->pflags & PFLAG_SUPPRESS_CNG) && !cng_pt && !strcasecmp(rm_encoding, "CN")) {
-                                       cng_pt = tech_pvt->cng_pt = (switch_payload_t) map->rm_pt;
+                                       cng_pt = (switch_payload_t) map->rm_pt;
                                        if (tech_pvt->rtp_session) {
                                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Set comfort noise payload to %u\n", cng_pt);
                                                switch_rtp_set_cng_pt(tech_pvt->rtp_session, tech_pvt->cng_pt);
@@ -2519,7 +2519,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
        }
        
  done:
-
+       tech_pvt->cng_pt = cng_pt;
        switch_set_flag_locked(tech_pvt, TFLAG_SDP);
 
        return match;