]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't say "Please try again" if we don't give the user another chance to try again.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 14 Sep 2009 19:16:35 +0000 (19:16 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 14 Sep 2009 19:16:35 +0000 (19:16 +0000)
(issue #15055, SWP-129)
 Reported by: jthurman

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@218331 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c
sounds/Makefile

index 2213f8855dac29f211d8395e5b0555811155b7b7..796e8f52f7082dea1b5d1998aaf922680cd1f387 100644 (file)
@@ -6861,6 +6861,9 @@ static int vm_newuser(struct ast_channel *chan, struct ast_vm_user *vmu, struct
                cmd = ast_play_and_wait(chan, "vm-mismatch");
                if (++tries == 3)
                        return -1;
+               if (cmd == 0) {
+                       cmd = ast_play_and_wait(chan, "vm-pls-try-again");
+               }
        }
        if (ast_strlen_zero(ext_pass_cmd)) 
                vm_change_password(vmu,newpassword);
@@ -6970,6 +6973,9 @@ static int vm_options(struct ast_channel *chan, struct ast_vm_user *vmu, struct
                        if (strcmp(newpassword, newpassword2)) {
                                ast_log(LOG_NOTICE,"Password mismatch for user %s (%s != %s)\n", vms->username, newpassword, newpassword2);
                                cmd = ast_play_and_wait(chan, "vm-mismatch");
+                               if (!cmd) {
+                                       cmd = ast_play_and_wait(chan, "vm-pls-try-again");
+                               }
                                break;
                        }
                        if (ast_strlen_zero(ext_pass_cmd)) 
index 4cd6051082e6828734324528d7ab904bf9dab13a..fdb986d6d597a16e9c6f049ceeaecf36f03ac9ec 100644 (file)
@@ -18,7 +18,7 @@
 PWD:=$(shell pwd)
 SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
 MOH_DIR:=$(DESTDIR)$(ASTDATADIR)/moh
-CORE_SOUNDS_VERSION:=1.4.15
+CORE_SOUNDS_VERSION:=1.4.16
 EXTRA_SOUNDS_VERSION:=1.4.9
 SOUNDS_URL:=http://downloads.digium.com/pub/telephony/sounds/releases
 MCS:=$(subst -EN-,-en-,$(MENUSELECT_CORE_SOUNDS))