summaryrefslogtreecommitdiff
path: root/apps/app_hasnewvoicemail.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_hasnewvoicemail.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_hasnewvoicemail.c')
-rwxr-xr-xapps/app_hasnewvoicemail.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c
index 83f834913..5d681eb74 100755
--- a/apps/app_hasnewvoicemail.c
+++ b/apps/app_hasnewvoicemail.c
@@ -189,27 +189,32 @@ struct ast_custom_function acf_vmcount = {
.synopsis = "Counts the voicemail in a specified mailbox",
.syntax = "VMCOUNT(vmbox[@context][|folder])",
.desc =
-" context - defaults to \"default\"\n"
-" folder - defaults to \"INBOX\"\n",
+ " context - defaults to \"default\"\n"
+ " folder - defaults to \"INBOX\"\n",
.read = acf_vmcount_exec,
};
int unload_module(void)
{
int res;
- STANDARD_HANGUP_LOCALUSERS;
+
res = ast_custom_function_unregister(&acf_vmcount);
res |= ast_unregister_application(app_hasvoicemail);
res |= ast_unregister_application(app_hasnewvoicemail);
+
+ STANDARD_HANGUP_LOCALUSERS;
+
return res;
}
int load_module(void)
{
int res;
+
res = ast_custom_function_register(&acf_vmcount);
res |= ast_register_application(app_hasvoicemail, hasvoicemail_exec, hasvoicemail_synopsis, hasvoicemail_descrip);
res |= ast_register_application(app_hasnewvoicemail, hasvoicemail_exec, hasnewvoicemail_synopsis, hasnewvoicemail_descrip);
+
return res;
}