[Asterisk-code-review] pbx config: Register manager actions with module version of ... (asterisk[master])

Corey Farrell asteriskteam at digium.com
Tue May 5 09:30:43 CDT 2015


Corey Farrell has uploaded a new change for review.

  https://gerrit.asterisk.org/361

Change subject: pbx_config: Register manager actions with module version of macro.
......................................................................

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
---
M pbx/pbx_config.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/61/361/1

diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 92462bf..09941a6 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -2080,9 +2080,9 @@
 		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) {

-- 
To view, visit https://gerrit.asterisk.org/361
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I422c50dd74814616ac10c5e9c6598a0b1bc2c44e
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>



More information about the asterisk-code-review mailing list