--- 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) {