]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix mod_fifo presence
authorstangor <stangor1@gmail.com>
Mon, 11 Aug 2014 21:08:10 +0000 (14:08 -0700)
committerstangor <stangor1@gmail.com>
Mon, 11 Aug 2014 21:08:10 +0000 (14:08 -0700)
https://jira.freeswitch.org/browse/FS-6732

src/mod/applications/mod_fifo/mod_fifo.c

index ff00fec2567f649d25acf4c5549fc77c8ae1a08c..ac0d1167b798a2facf940f8ed05518ce2e84ed78 100644 (file)
@@ -2214,9 +2214,9 @@ static void send_presence(fifo_node_t *node)
                }
 
                if ((wait_count = node_caller_count(node)) > 0) {
-                       switch_event_add_header(event, SWITCH_STACK_BOTTOM, "status", "Active (%d waiting)", wait_count);
+                       switch_event_add_header(event, SWITCH_STACK_BOTTOM, "force-status", "Active (%d waiting)", wait_count);
                } else {
-                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "status", "Idle");
+                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "force-status", "Idle");
                }
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "rpid", "unknown");
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "event_type", "presence");
@@ -2225,7 +2225,7 @@ static void send_presence(fifo_node_t *node)
 
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "channel-state", wait_count > 0 ? "CS_ROUTING" : "CS_HANGUP");
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "unique-id", node->name);
-               switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "answer-state", wait_count > 0 ? "early" : "terminated");
+               switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "answer-state", wait_count > 0 ? "confirmed" : "terminated");
                switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "presence-call-direction", "inbound");
                switch_event_fire(&event);
        }