From: Anthony Minessale Date: Mon, 11 Nov 2013 22:47:07 +0000 (-0600) Subject: add logical-direction to events X-Git-Tag: v1.5.7~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5456daa010ab871e0d2d0ce600f4e8a672db1826;p=thirdparty%2Ffreeswitch.git add logical-direction to events --- diff --git a/src/switch_caller.c b/src/switch_caller.c index fdd41a4dd7..f7a9e5d40a 100644 --- a/src/switch_caller.c +++ b/src/switch_caller.c @@ -313,6 +313,10 @@ SWITCH_DECLARE(void) switch_caller_profile_event_set_data(switch_caller_profile_ switch_snprintf(header_name, sizeof(header_name), "%s-Direction", prefix); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, header_name, caller_profile->direction == SWITCH_CALL_DIRECTION_INBOUND ? "inbound" : "outbound"); + + switch_snprintf(header_name, sizeof(header_name), "%s-Logical-Direction", prefix); + switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, header_name, caller_profile->logical_direction == SWITCH_CALL_DIRECTION_INBOUND ? + "inbound" : "outbound"); if (!zstr(caller_profile->username)) { switch_snprintf(header_name, sizeof(header_name), "%s-Username", prefix);