From d6759e0117729cef6caf40d4d08617c57eaa9c24 Mon Sep 17 00:00:00 2001
From: "Eliel C. Sardanons" <eliels@gmail.com>
Date: Fri, 22 May 2009 19:38:33 +0000
Subject: [PATCH] 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
---
 apps/app_minivm.c | 2 ++
 1 file changed, 2 insertions(+)

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);
-- 
GitLab