mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Fix "0" auto deleting messages from voicemail (bug #3057)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5899,8 +5899,17 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
|
||||
#endif
|
||||
case '0':
|
||||
if (message_exists || recorded) {
|
||||
cmd = ast_play_and_wait(chan, "vm-saveoper");
|
||||
if (!cmd)
|
||||
cmd = ast_waitfordigit(chan, 3000);
|
||||
if (cmd == '1') {
|
||||
ast_play_and_wait(chan, "vm-msgsaved");
|
||||
cmd = '0';
|
||||
} else {
|
||||
ast_play_and_wait(chan, "vm-deleted");
|
||||
DELETE(recordfile, -1, recordfile);
|
||||
cmd = '0';
|
||||
}
|
||||
}
|
||||
return cmd;
|
||||
default:
|
||||
|
||||
@@ -465,6 +465,8 @@
|
||||
|
||||
%vm-advopts.gsm%press 3 for advanced options
|
||||
|
||||
%vm-saveoper.gsm%press 1 to accept this recording, or continue to hold
|
||||
|
||||
%vm-toreply.gsm%press 1 to send a reply
|
||||
|
||||
%vm-tocallback.gsm%press 2 to call the person who sent this message
|
||||
|
||||
BIN
sounds/vm-saveoper.gsm
Executable file
BIN
sounds/vm-saveoper.gsm
Executable file
Binary file not shown.
Reference in New Issue
Block a user