[svn-commits] russell: branch 1.6.1 r164625 - in /branches/1.6.1: ./ apps/app_minivm.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 16 09:02:15 CST 2008


Author: russell
Date: Tue Dec 16 09:02:14 2008
New Revision: 164625

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164625
Log:
Merged revisions 164623 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r164623 | russell | 2008-12-16 09:00:27 -0600 (Tue, 16 Dec 2008) | 5 lines

Set MINIVM_ACCMESS_STATUS in all cases.  Also, remove a variable that was not needed.

(closes issue #14081)
Reported by: pkempgen

........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/apps/app_minivm.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/apps/app_minivm.c?view=diff&rev=164625&r1=164624&r2=164625
==============================================================================
--- branches/1.6.1/apps/app_minivm.c (original)
+++ branches/1.6.1/apps/app_minivm.c Tue Dec 16 09:02:14 2008
@@ -1980,7 +1980,6 @@
 {
 	int argc = 0;
 	char *argv[2];
-	int res = 0;
 	char filename[PATH_MAX];
 	char tmp[PATH_MAX];
 	char *domain;
@@ -2022,8 +2021,10 @@
 		error = TRUE;
 	}
 
-	if (error)
+	if (error) {
+		pbx_builtin_setvar_helper(chan, "MINIVM_ACCMESS_STATUS", "FAILED");
 		return -1;
+	}
 
 	ast_copy_string(tmp, argv[0], sizeof(tmp));
 	username = tmp;
@@ -2034,6 +2035,7 @@
 	} 
 	if (ast_strlen_zero(domain) || ast_strlen_zero(username)) {
 		ast_log(LOG_ERROR, "Need username at domain as argument. Sorry. Argument 0 %s\n", argv[0]);
+		pbx_builtin_setvar_helper(chan, "MINIVM_ACCMESS_STATUS", "FAILED");
 		return -1;
 	}
 
@@ -2071,10 +2073,10 @@
 	if(ast_test_flag(vmu, MVM_ALLOCED))
 		free_user(vmu);
 
+	pbx_builtin_setvar_helper(chan, "MINIVM_NOTIFY_STATUS", "SUCCESS");
 
 	/* Ok, we're ready to rock and roll. Return to dialplan */
-	return res;
-
+	return 0;
 }
 
 /*! \brief Append new mailbox to mailbox list from configuration file */




More information about the svn-commits mailing list