[Asterisk-cvs] asterisk/apps app_voicemail.c,1.151.2.11,1.151.2.12
russell at lists.digium.com
russell at lists.digium.com
Tue Jan 4 23:27:45 CST 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv15452/apps
Modified Files:
Tag: v1-0
app_voicemail.c
Log Message:
Add option to save a file after pressing '0' to go to the operator (bug #3057)
Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.151.2.11
retrieving revision 1.151.2.12
diff -u -d -r1.151.2.11 -r1.151.2.12
--- app_voicemail.c 4 Jan 2005 17:18:15 -0000 1.151.2.11
+++ app_voicemail.c 5 Jan 2005 05:32:47 -0000 1.151.2.12
@@ -4695,8 +4695,17 @@
#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:
More information about the svn-commits
mailing list