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
1.2-netsec
Mark Spencer 21 years ago
parent ef0a57efce
commit 3e8bdfc9c9

@ -5899,8 +5899,17 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
#endif #endif
case '0': case '0':
if (message_exists || recorded) { 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"); ast_play_and_wait(chan, "vm-deleted");
DELETE(recordfile, -1, recordfile); DELETE(recordfile, -1, recordfile);
cmd = '0';
}
} }
return cmd; return cmd;
default: default:

@ -465,6 +465,8 @@
%vm-advopts.gsm%press 3 for advanced options %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-toreply.gsm%press 1 to send a reply
%vm-tocallback.gsm%press 2 to call the person who sent this message %vm-tocallback.gsm%press 2 to call the person who sent this message

Binary file not shown.
Loading…
Cancel
Save