mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 04:57:05 +00:00
add presence to mod_valet_parking subscribe to the lot name for general stats or individual slots to monitor with park+ prefix *note* this used to be used in mod_fifo which now will use queue+ going forward
This commit is contained in:
1 parent
34ddeb754f
commit
9daa42c1b5
4 files changed
+299
-11
No files matched your search
@@ -1928,7 +1928,7 @@ static void send_presence(fifo_node_t *node)
|
||||
}
|
||||
|
||||
if (switch_event_create(&event, SWITCH_EVENT_PRESENCE_IN) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "proto", "park");
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "proto", "queue");
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "login", node->name);
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "from", node->name);
|
||||
if ((wait_count = node_caller_count(node)) > 0) {
|
||||
@@ -1959,7 +1959,7 @@ static void pres_event_handler(switch_event_t *event)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!to || strncasecmp(to, "park+", 5)) {
|
||||
if (!to || strncasecmp(to, "queue+", 5)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user