mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-06 04:11:52 +00:00
add reloadxml event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7775 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
+11
-1
@@ -1479,7 +1479,17 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_open_root(uint8_t reload, const char **e
|
||||
}
|
||||
switch_mutex_unlock(XML_LOCK);
|
||||
|
||||
return errcnt == 0 ? switch_xml_root() : NULL;
|
||||
if (errcnt == 0) {
|
||||
switch_event_t *event;
|
||||
if (switch_event_create(&event, SWITCH_EVENT_RELOADXML) == SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_event_fire(&event) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_destroy(&event);
|
||||
}
|
||||
}
|
||||
return switch_xml_root();
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_xml_init(switch_memory_pool_t *pool, const char **err)
|
||||
|
||||
Reference in New Issue
Block a user