mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
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:
@@ -4695,8 +4695,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) {
|
||||||
ast_play_and_wait(chan, "vm-deleted");
|
cmd = ast_play_and_wait(chan, "vm-saveoper");
|
||||||
vm_delete(recordfile);
|
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;
|
return cmd;
|
||||||
default:
|
default:
|
||||||
|
@@ -447,6 +447,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
|
||||||
|
Reference in New Issue
Block a user