mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 14:28:24 +00:00
Add instrumentation to subsystem reloads
When Asterisk is built with TEST_FRAMEWORK defined, Asterisk will now generate TestEvent AMI events on subsystem reloads such as cdr, dnsmgr, extconfig, etc. (issue PQ-1126) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@371436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -713,7 +713,9 @@ int ast_module_reload(const char *name)
|
||||
/* Call "predefined" reload here first */
|
||||
for (i = 0; reload_classes[i].name; i++) {
|
||||
if (!name || !strcasecmp(name, reload_classes[i].name)) {
|
||||
reload_classes[i].reload_fn(); /* XXX should check error ? */
|
||||
if (!reload_classes[i].reload_fn()) {
|
||||
ast_test_suite_event_notify("MODULE_RELOAD", "Message: %s", name);
|
||||
}
|
||||
res = 2; /* found and reloaded */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user