From 2c83f05ebb3060c268c396b5c5fe6a6f7f20a638 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 18 Oct 2005 22:52:21 +0000 Subject: 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 --- apps/app_groupcount.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'apps/app_groupcount.c') 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; } -- cgit v1.2.3