mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
Merge pull request #1584 from greenbea/patch-7
[mod_callcenter] Fix SWITCH_EVENT_PRESENCE_PROBE unbind
This commit is contained in:
commit
c999598a0a
@ -4212,6 +4212,10 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_callcenter_load)
|
|||||||
return SWITCH_STATUS_TERM;
|
return SWITCH_STATUS_TERM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
memset(&globals, 0, sizeof(globals));
|
||||||
|
globals.pool = pool;
|
||||||
|
|
||||||
/* Subscribe to presence request events */
|
/* Subscribe to presence request events */
|
||||||
if (switch_event_bind_removable(modname, SWITCH_EVENT_PRESENCE_PROBE, SWITCH_EVENT_SUBCLASS_ANY,
|
if (switch_event_bind_removable(modname, SWITCH_EVENT_PRESENCE_PROBE, SWITCH_EVENT_SUBCLASS_ANY,
|
||||||
cc_presence_event_handler, NULL, &globals.node) != SWITCH_STATUS_SUCCESS) {
|
cc_presence_event_handler, NULL, &globals.node) != SWITCH_STATUS_SUCCESS) {
|
||||||
@ -4219,9 +4223,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_callcenter_load)
|
|||||||
return SWITCH_STATUS_GENERR;
|
return SWITCH_STATUS_GENERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&globals, 0, sizeof(globals));
|
|
||||||
globals.pool = pool;
|
|
||||||
|
|
||||||
switch_core_hash_init(&globals.queue_hash);
|
switch_core_hash_init(&globals.queue_hash);
|
||||||
switch_mutex_init(&globals.mutex, SWITCH_MUTEX_NESTED, globals.pool);
|
switch_mutex_init(&globals.mutex, SWITCH_MUTEX_NESTED, globals.pool);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user