summaryrefslogtreecommitdiff
path: root/pbx
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2015-05-05 10:27:15 -0400
committerCorey Farrell <git@cfware.com>2015-05-05 10:27:15 -0400
commit69ae8cf0a4c441c1ebfab0da423cc1acfcc8c7aa (patch)
treeffcd430406a9f4ded6d77443c9091f9ccf7a9aeb /pbx
parent040d2f8558b0775b95fbd60b9a3dc958bb11197b (diff)
pbx_config: Register manager actions with module version of macro.
Switch manager actions in pbx_config to use the registration macro that passes the module pointer, allowing pbx_config reference to be bumped while the manager actions run. ASTERISK-25061 #close Reported by: Corey Farrell Change-Id: I422c50dd74814616ac10c5e9c6598a0b1bc2c44e
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 79260bbad..b03642504 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -2080,9 +2080,9 @@ static int load_module(void)
ast_cli_register(&cli_dialplan_save);
ast_cli_register_multiple(cli_pbx_config, ARRAY_LEN(cli_pbx_config));
- res = ast_manager_register_xml_core(AMI_EXTENSION_ADD,
+ res = ast_manager_register_xml(AMI_EXTENSION_ADD,
EVENT_FLAG_SYSTEM, manager_dialplan_extension_add);
- res |= ast_manager_register_xml_core(AMI_EXTENSION_REMOVE,
+ res |= ast_manager_register_xml(AMI_EXTENSION_REMOVE,
EVENT_FLAG_SYSTEM, manager_dialplan_extension_remove);
if (res) {