Revision
15674
Author
anthm
Date
2009-11-25 15:34:51 -0600 (Wed, 25 Nov 2009)

Log Message

ok find stangor

Modified Paths

Diff

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


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-11-25 21:32:21 UTC (rev 15673)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-11-25 21:34:51 UTC (rev 15674)
@@ -413,10 +413,14 @@
 {
 	const char *codec_string = NULL;
 	
-	if (switch_channel_direction(tech_pvt->channel) == SWITCH_CALL_DIRECTION_OUTBOUND && !zstr(tech_pvt->profile->outbound_codec_string)) {
-		codec_string = tech_pvt->profile->outbound_codec_string ? tech_pvt->profile->outbound_codec_string : tech_pvt->profile->inbound_codec_string;
-	} else if (!zstr(tech_pvt->profile->inbound_codec_string)) {
-		codec_string = tech_pvt->profile->inbound_codec_string ? tech_pvt->profile->inbound_codec_string : tech_pvt->profile->outbound_codec_string;
+	if (switch_channel_direction(tech_pvt->channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
+		if (!zstr(tech_pvt->profile->outbound_codec_string)) {
+			codec_string = tech_pvt->profile->outbound_codec_string ? tech_pvt->profile->outbound_codec_string : tech_pvt->profile->inbound_codec_string;
+		}
+	} else {
+		if (!zstr(tech_pvt->profile->inbound_codec_string)) {
+			codec_string = tech_pvt->profile->inbound_codec_string ? tech_pvt->profile->inbound_codec_string : tech_pvt->profile->outbound_codec_string;
+		}
 	}
 	
 	return codec_string;