Voicemail fixes (bug #1982)
authorMark Spencer <markster@digium.com>
Sat, 17 Jul 2004 01:34:20 +0000 (01:34 +0000)
committerMark Spencer <markster@digium.com>
Sat, 17 Jul 2004 01:34:20 +0000 (01:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3453 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c
sounds.txt
sounds/vm-incorrect-mailbox.gsm [new file with mode: 0755]
sounds/vm-incorrect.gsm

index 40d9e92..af7aa80 100755 (executable)
@@ -3567,13 +3567,19 @@ static int vm_execmain(struct ast_channel *chan, void *data)
                        if (prefix)
                                strncpy(vms.username, empty, sizeof(vms.username) -1);
                }
+               logretries++;
                if (!valid) {
-                       if (useadsi)
-                               adsi_login(chan);
-                       if (ast_streamfile(chan, "vm-incorrect", chan->language))
-                               break;
+                       if (skipuser || logretries >= maxlogins) {
+                               if (ast_streamfile(chan, "vm-incorrect", chan->language))
+                                       break;
+                       } else {
+                               if (useadsi)
+                                       adsi_login(chan);
+                               if (ast_streamfile(chan, "vm-incorrect-mailbox", chan->language))
+                                       break;
+                       }
+                       ast_waitstream(chan, "");
                }
-               logretries++;
        }
        if (!valid && (logretries >= maxlogins)) {
                ast_stopstream(chan);
index 4a6276d..92ea6e6 100755 (executable)
 
 %vm-INBOX.gsm%new
 
-%vm-incorrect.gsm%Login incorrect.  Mailbox?
+%vm-incorrect-mailbox.gsm%Login incorrect.  Mailbox?
+
+%vm-incorrect.gsm%Login incorrect.
 
 %vm-instructions.gsm%To look into your messages press 1 now.  You may quit voicemail at any time by pressing the pound key.
 
diff --git a/sounds/vm-incorrect-mailbox.gsm b/sounds/vm-incorrect-mailbox.gsm
new file mode 100755 (executable)
index 0000000..8993407
Binary files /dev/null and b/sounds/vm-incorrect-mailbox.gsm differ
index 8993407..fd42267 100755 (executable)
Binary files a/sounds/vm-incorrect.gsm and b/sounds/vm-incorrect.gsm differ