From: Anthony Minessale Date: Tue, 29 Jul 2014 17:20:31 +0000 (+0500) Subject: FS-6701 #resolve X-Git-Tag: v1.4.8~10^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=388d980b860c3d0248200a952e411626a080e4ad;p=thirdparty%2Ffreeswitch.git FS-6701 #resolve --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 78ebc97938..ccc43aefef 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -393,6 +393,7 @@ SWITCH_DECLARE(void) switch_channel_set_direction(switch_channel_t *channel, swi { if (!switch_core_session_in_thread(channel->session)) { channel->direction = channel->logical_direction = direction; + switch_channel_set_variable(channel, "direction", switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND ? "outbound" : "inbound"); } }