Make sure shell version happens even if MySQL mailboxes are there (bug #2367)
authorMark Spencer <markster@digium.com>
Fri, 3 Sep 2004 15:25:11 +0000 (15:25 +0000)
committerMark Spencer <markster@digium.com>
Fri, 3 Sep 2004 15:25:11 +0000 (15:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3719 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index f20d6d0..4684e6f 100755 (executable)
@@ -574,13 +574,6 @@ static int reset_user_pw(char *context, char *mailbox, char *newpass)
        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 @@ static void vm_change_password(struct ast_vm_user *vmu, char *newpassword)
 }
 #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);