From: Eliel C. Sardanons Date: Fri, 22 May 2009 19:38:33 +0000 (+0000) Subject: Unregister every registered application by MiniVM. X-Git-Tag: 11.0.0-beta1~4834 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6759e0117729cef6caf40d4d08617c57eaa9c24;p=thirdparty%2Fasterisk.git Unregister every registered application by MiniVM. The MinivmMWI application was not being unregistered on unload and we were not able to load again the module or reload it. (closes issue #15174) Reported by: junky Patches: unregister_minivm_mwi.diff uploaded by junky (license 177) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196377 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_minivm.c b/apps/app_minivm.c index 59323ee4e0..8b68294bec 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -3462,6 +3462,8 @@ static int unload_module(void) res |= ast_unregister_application(app_minivm_notify); res |= ast_unregister_application(app_minivm_delete); res |= ast_unregister_application(app_minivm_accmess); + res |= ast_unregister_application(app_minivm_mwi); + ast_cli_unregister_multiple(cli_minivm, ARRAY_LEN(cli_minivm)); ast_custom_function_unregister(&minivm_account_function); ast_custom_function_unregister(&minivm_counter_function);