Add option to save a file after pressing '0' to go to the operator (bug #3057)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-01-05 05:32:47 +00:00
parent 5799a6a60c
commit de117b689e
2 changed files with 13 additions and 2 deletions

View File

@@ -4695,8 +4695,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");
vm_delete(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");
vm_delete(recordfile);
cmd = '0';
}
}
return cmd;
default:

View File

@@ -447,6 +447,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