[Asterisk-cvs] asterisk/apps app_voicemail.c,1.142,1.143

markster at lists.digium.com markster at lists.digium.com
Fri Sep 3 11:22:06 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv20134/apps

Modified Files:
	app_voicemail.c 
Log Message:
Make sure shell version happens even if MySQL mailboxes are there (bug #2367)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -d -r1.142 -r1.143
--- app_voicemail.c	3 Sep 2004 03:53:47 -0000	1.142
+++ app_voicemail.c	3 Sep 2004 15:25:11 -0000	1.143
@@ -574,13 +574,6 @@
 	return res;
 }
 
-static void vm_change_password_shell(struct ast_vm_user *vmu, char *newpassword)
-{
-	char buf[255];
-	snprintf(buf,255,"%s %s %s %s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword);
-	ast_safe_system(buf);
-}
-
 static void vm_change_password(struct ast_vm_user *vmu, char *newpassword)
 {
         /*  There's probably a better way of doing this. */
@@ -694,6 +687,13 @@
 }
 #endif
 
+static void vm_change_password_shell(struct ast_vm_user *vmu, char *newpassword)
+{
+	char buf[255];
+	snprintf(buf,255,"%s %s %s %s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword);
+	ast_safe_system(buf);
+}
+
 static int make_dir(char *dest, int len, char *context, char *ext, char *mailbox)
 {
 	return snprintf(dest, len, "%s/voicemail/%s/%s/%s", (char *)ast_config_AST_SPOOL_DIR,context, ext, mailbox);




More information about the svn-commits mailing list