diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-18 22:52:21 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-18 22:52:21 +0000 |
commit | 2c83f05ebb3060c268c396b5c5fe6a6f7f20a638 (patch) | |
tree | 20630ce6a7b373291da39670c360ee680603aed4 /apps/app_groupcount.c | |
parent | 01ddee76b0828acb3407d556191b7ca60fb73fea (diff) |
it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6828 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_groupcount.c')
-rwxr-xr-x | apps/app_groupcount.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c index 63702bbf4..493070f42 100755 --- a/apps/app_groupcount.c +++ b/apps/app_groupcount.c @@ -267,23 +267,28 @@ static struct ast_cli_entry cli_show_channels = int unload_module(void) { int res; - STANDARD_HANGUP_LOCALUSERS; - ast_cli_unregister(&cli_show_channels); - res = ast_unregister_application(app_group_count); + + res = ast_cli_unregister(&cli_show_channels); + res |= ast_unregister_application(app_group_count); res |= ast_unregister_application(app_group_set); res |= ast_unregister_application(app_group_check); res |= ast_unregister_application(app_group_match_count); + + STANDARD_HANGUP_LOCALUSERS; + return res; } int load_module(void) { int res; + res = ast_register_application(app_group_count, group_count_exec, group_count_synopsis, group_count_descrip); res |= ast_register_application(app_group_set, group_set_exec, group_set_synopsis, group_set_descrip); res |= ast_register_application(app_group_check, group_check_exec, group_check_synopsis, group_check_descrip); res |= ast_register_application(app_group_match_count, group_match_count_exec, group_match_count_synopsis, group_match_count_descrip); - ast_cli_register(&cli_show_channels); + res |= ast_cli_register(&cli_show_channels); + return res; } |