]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6701 #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 29 Jul 2014 17:20:31 +0000 (22:20 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 29 Jul 2014 17:20:31 +0000 (22:20 +0500)
src/switch_channel.c

index 78ebc979380628ca7b6e7c28bca613b32940e029..ccc43aefef6caee6e9ca67256d6112df45c4db14 100644 (file)
@@ -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");
        }
 }