Modified: freeswitch/trunk/src/switch_channel.c (17400 => 17401)
--- freeswitch/trunk/src/switch_channel.c 2010-04-26 09:12:26 UTC (rev 17400)
+++ freeswitch/trunk/src/switch_channel.c 2010-04-26 09:18:46 UTC (rev 17401)
@@ -241,6 +241,7 @@
(*channel)->hangup_cause = SWITCH_CAUSE_NONE;
(*channel)->name = "";
(*channel)->direction = direction;
+ switch_channel_set_variable(*channel, "direction", switch_channel_direction(*channel) == SWITCH_CALL_DIRECTION_OUTBOUND ? "outbound" : "inbound");
return SWITCH_STATUS_SUCCESS;
}