mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Voicemail fixes (bug #1982)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
if (!valid) {
|
|
||||||
if (useadsi)
|
|
||||||
adsi_login(chan);
|
|
||||||
if (ast_streamfile(chan, "vm-incorrect", chan->language))
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
logretries++;
|
logretries++;
|
||||||
|
if (!valid) {
|
||||||
|
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, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
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.
|
||||||
|
|
||||||
|
|||||||
BIN
sounds/vm-incorrect-mailbox.gsm
Executable file
BIN
sounds/vm-incorrect-mailbox.gsm
Executable file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user