]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add logical-direction to events
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 11 Nov 2013 22:47:07 +0000 (16:47 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 11 Nov 2013 22:47:13 +0000 (16:47 -0600)
src/switch_caller.c

index fdd41a4dd78dd44477078c1ca3f621f732f65ec2..f7a9e5d40a940de45cad5f0f0ffdb29887814b25 100644 (file)
@@ -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);