Voicemail fixes (bug #1982)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 6b8ecfa35f
commit 09c3679e2d

@ -3567,13 +3567,19 @@ static int vm_execmain(struct ast_channel *chan, void *data)
if (prefix) if (prefix)
strncpy(vms.username, empty, sizeof(vms.username) -1); strncpy(vms.username, empty, sizeof(vms.username) -1);
} }
logretries++;
if (!valid) { if (!valid) {
if (skipuser || logretries >= maxlogins) {
if (ast_streamfile(chan, "vm-incorrect", chan->language))
break;
} else {
if (useadsi) if (useadsi)
adsi_login(chan); adsi_login(chan);
if (ast_streamfile(chan, "vm-incorrect", chan->language)) if (ast_streamfile(chan, "vm-incorrect-mailbox", chan->language))
break; break;
} }
logretries++; ast_waitstream(chan, "");
}
} }
if (!valid && (logretries >= maxlogins)) { if (!valid && (logretries >= maxlogins)) {
ast_stopstream(chan); ast_stopstream(chan);

@ -128,7 +128,9 @@
%vm-INBOX.gsm%new %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. %vm-instructions.gsm%To look into your messages press 1 now. You may quit voicemail at any time by pressing the pound key.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save