[Freeswitch-svn] [commit] r4276 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Wed Feb 14 17:14:33 EST 2007
Author: anthm
Date: Wed Feb 14 17:14:32 2007
New Revision: 4276
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
fix codec neg
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Wed Feb 14 17:14:32 2007
@@ -802,7 +802,9 @@
codec_string = abs;
} else {
if (!(codec_string = switch_channel_get_variable(channel, "codec_string"))) {
- codec_string = tech_pvt->profile->codec_string;
+ if (tech_pvt->profile->codec_string) {
+ codec_string = switch_core_session_strdup(tech_pvt->session, tech_pvt->profile->codec_string);
+ }
}
if ((ocodec = switch_channel_get_variable(channel, SWITCH_ORIGINATOR_CODEC_VARIABLE))) {
@@ -2373,7 +2375,7 @@
if (!strcasecmp(map->rm_encoding, "telephone-event")) {
tech_pvt->te = (switch_payload_t)map->rm_pt;
}
-
+
for (i = 0; i < tech_pvt->num_codecs; i++) {
const switch_codec_implementation_t *imp = tech_pvt->codecs[i];
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Codec Compare [%s:%d]/[%s:%d]\n",
More information about the Freeswitch-svn
mailing list