Revision
17401
Author
mike
Date
2010-04-26 04:18:46 -0500 (Mon, 26 Apr 2010)

Log Message

add 'direction' chan var

Modified Paths

Diff

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;
 }