summaryrefslogtreecommitdiff
path: root/res/res_mwi_external_ami.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2015-05-21 18:51:18 -0400
committerCorey Farrell <git@cfware.com>2015-05-21 18:18:57 -0500
commit36e5402885d4ada10ab30e5cb15b51f788b3343c (patch)
tree460108dfd469097a9c02ecd88dc261ce2cdfea9b /res/res_mwi_external_ami.c
parent3e2a994c7186111cc9f679b1259b732843e6d6f9 (diff)
res_mwi_external_ami: Use module version of AMI registration.
Use ast_manager_register_xml for res_mwi_external_ami manager actions. This ensures the module is held open while any of the actions are being run. ASTERISK-25117 #close Reported by: Corey Farrell Change-Id: Iececfdc2da498b2c32b9e09042f5f12292007ac7
Diffstat (limited to 'res/res_mwi_external_ami.c')
-rw-r--r--res/res_mwi_external_ami.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_mwi_external_ami.c b/res/res_mwi_external_ami.c
index 24562e193..7777214cd 100644
--- a/res/res_mwi_external_ami.c
+++ b/res/res_mwi_external_ami.c
@@ -357,9 +357,9 @@ static int load_module(void)
ast_mwi_external_ref();
res = 0;
- res |= ast_manager_register_xml_core("MWIGet", EVENT_FLAG_CALL | EVENT_FLAG_REPORTING, mwi_mailbox_get);
- res |= ast_manager_register_xml_core("MWIDelete", EVENT_FLAG_CALL, mwi_mailbox_delete);
- res |= ast_manager_register_xml_core("MWIUpdate", EVENT_FLAG_CALL, mwi_mailbox_update);
+ res |= ast_manager_register_xml("MWIGet", EVENT_FLAG_CALL | EVENT_FLAG_REPORTING, mwi_mailbox_get);
+ res |= ast_manager_register_xml("MWIDelete", EVENT_FLAG_CALL, mwi_mailbox_delete);
+ res |= ast_manager_register_xml("MWIUpdate", EVENT_FLAG_CALL, mwi_mailbox_update);
if (res) {
unload_module();
return AST_MODULE_LOAD_DECLINE;