mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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
This commit is contained in:
@@ -495,15 +495,24 @@ static struct ast_cli_entry cli_muxmon = {
|
||||
|
||||
int unload_module(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
res = ast_cli_unregister(&cli_muxmon);
|
||||
res |= ast_unregister_application(app);
|
||||
|
||||
STANDARD_HANGUP_LOCALUSERS;
|
||||
ast_cli_unregister(&cli_muxmon);
|
||||
return ast_unregister_application(app);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
int load_module(void)
|
||||
{
|
||||
ast_cli_register(&cli_muxmon);
|
||||
return ast_register_application(app, muxmon_exec, synopsis, desc);
|
||||
int res;
|
||||
|
||||
res = ast_cli_register(&cli_muxmon);
|
||||
res |= ast_register_application(app, muxmon_exec, synopsis, desc);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
char *description(void)
|
||||
|
Reference in New Issue
Block a user