summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-10-18 22:52:21 +0000
committerRussell Bryant <russell@russellbryant.com>2005-10-18 22:52:21 +0000
commit29829640bf10b2d517c1aed12cc31deb5897285c (patch)
tree20630ce6a7b373291da39670c360ee680603aed4 /apps/app_voicemail.c
parent907fd55883aefce1a753e9910bacf845bb6ff71f (diff)
it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-xapps/app_voicemail.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 8f19fbbaa..54351f9d6 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -6212,14 +6212,17 @@ int reload(void)
int unload_module(void)
{
int res;
- STANDARD_HANGUP_LOCALUSERS;
+
res = ast_unregister_application(app);
res |= ast_unregister_application(app2);
res |= ast_unregister_application(app3);
res |= ast_unregister_application(app4);
- ast_cli_unregister(&show_voicemail_users_cli);
- ast_cli_unregister(&show_voicemail_zones_cli);
+ res |= ast_cli_unregister(&show_voicemail_users_cli);
+ res |= ast_cli_unregister(&show_voicemail_zones_cli);
ast_uninstall_vm_functions();
+
+ STANDARD_HANGUP_LOCALUSERS;
+
return res;
}