Unregister every registered application by MiniVM.
authorEliel C. Sardanons <eliels@gmail.com>
Fri, 22 May 2009 19:38:33 +0000 (19:38 +0000)
committerEliel C. Sardanons <eliels@gmail.com>
Fri, 22 May 2009 19:38:33 +0000 (19:38 +0000)
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

apps/app_minivm.c

index 59323ee..8b68294 100644 (file)
@@ -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);