mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +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) {
|
||||
ast_play_and_wait(chan, "vm-deleted");
|
||||
DELETE(recordfile, -1, recordfile);
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user