Revision
17447
Author
anthm
Date
2010-04-28 17:24:03 -0500 (Wed, 28 Apr 2010)

Log Message

/MODSOFIA-74

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (17446 => 17447)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2010-04-28 22:35:15 UTC (rev 17446)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2010-04-28 22:24:03 UTC (rev 17447)
@@ -3573,18 +3573,6 @@
 					match = 0;
 					got_audio = 0;
 				}
-				
-				for (map = m->m_rtpmaps; map; map = map->rm_next) {
-					if ((zstr(map->rm_encoding) || (tech_pvt->profile->ndlb & PFLAG_NDLB_ALLOW_BAD_IANANAME)) && map->rm_pt < 96) {
-						match = (map->rm_pt == tech_pvt->agreed_pt) ? 1 : 0;
-					} else {
-						match = strcasecmp(map->rm_encoding, tech_pvt->rm_encoding) ? 0 : 1;
-					}					
-				}
-
-				if (match) {
-					switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Existing codec is already acceptable, using that.\n");
-				}
 			}
 
 			for (map = m->m_rtpmaps; map; map = map->rm_next) {
@@ -3617,7 +3605,7 @@
 						}
 					}
 				}
-
+				
 				if (!sofia_test_pflag(tech_pvt->profile, PFLAG_SUPPRESS_CNG) && !cng_pt && !strcasecmp(rm_encoding, "CN")) {
 					cng_pt = (switch_payload_t) map->rm_pt;
 					if (tech_pvt->rtp_session) {