summaryrefslogtreecommitdiff
path: root/res/res_fax.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2014-07-23 01:28:57 +0000
committerCorey Farrell <git@cfware.com>2014-07-23 01:28:57 +0000
commitef697de4a56b42da2399a368e36e54eea9b7ce3d (patch)
tree312e1fe049fd290cbefb1a90890fa2e9ece9ee3e /res/res_fax.c
parentf613fc24fb441f7447894e3b437256736475d116 (diff)
res_fax: unregister manager actions on unload
* Unregister manager actions FAXSessions, FAXSession and FAXStats at unload. * Update ast_manager_register2 use ao2_t_alloc tagged with the action name. ASTERISK-24058 #close Reported by: Corey Farrell Review: https://reviewboard.asterisk.org/r/3831/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_fax.c')
-rw-r--r--res/res_fax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_fax.c b/res/res_fax.c
index d59ab09e6..68d2972cb 100644
--- a/res/res_fax.c
+++ b/res/res_fax.c
@@ -4553,6 +4553,10 @@ static int unload_module(void)
ast_log(LOG_WARNING, "failed to unregister '%s'\n", app_receivefax);
}
+ ast_manager_unregister("FAXSessions");
+ ast_manager_unregister("FAXSession");
+ ast_manager_unregister("FAXStats");
+
if (fax_logger_level != -1) {
ast_logger_unregister_level("FAX");
}