[asterisk-commits] jpeeler: branch 1.4 r261699 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 6 13:47:31 CDT 2010


Author: jpeeler
Date: Thu May  6 13:47:28 2010
New Revision: 261699

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=261699
Log:
Revert 261698, code in trunk leads me to believe unadvertised options are supported.

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=261699&r1=261698&r2=261699
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu May  6 13:47:28 2010
@@ -9468,7 +9468,6 @@
 		case '7':
 		case '8':
 		case '9':
-		case '0':
 		case '*':
 		case '#':
 			cmd = ast_play_and_wait(chan, "vm-sorry");
@@ -9487,6 +9486,25 @@
 			else
 				return 1;
 #endif
+		case '0':
+			if (!ast_test_flag(vmu, VM_OPERATOR)) {
+				cmd = ast_play_and_wait(chan, "vm-sorry");
+				break;
+			}
+			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");
+					DELETE(recordfile, -1, recordfile, vmu);
+					cmd = '0';
+				}
+			}
+			return cmd;
 		default:
 			/* If the caller is an ouside caller, and the review option is enabled,
 			   allow them to review the message, but let the owner of the box review




More information about the asterisk-commits mailing list