Revision
17467
Author
brian
Date
2010-05-01 19:50:53 -0500 (Sat, 01 May 2010)

Log Message

 MODENDP-303

Modified Paths

Diff

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


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2010-05-02 00:49:17 UTC (rev 17466)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2010-05-02 00:50:53 UTC (rev 17467)
@@ -164,7 +164,11 @@
 	}
 
 	if (!sr) {
-		sr = "sendrecv";
+		if ((var_val = switch_channel_get_variable(tech_pvt->channel, "media_audio_mode"))) { 
+			sr=var_val; 
+		} else {
+			sr = "sendrecv";
+		}
 	}
 
 	if (!tech_pvt->owner_id) {