[Asterisk-cvs] asterisk/apps app_voicemail.c,1.153,1.154

citats at lists.digium.com citats at lists.digium.com
Sat Oct 2 10:44:35 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/home/citats/cvs/asterisk/apps

Modified Files:
	app_voicemail.c 
Log Message:
Formatting cleanup in app_voicemail.c

Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -d -r1.153 -r1.154
--- app_voicemail.c	2 Oct 2004 03:01:20 -0000	1.153
+++ app_voicemail.c	2 Oct 2004 14:46:26 -0000	1.154
@@ -324,7 +324,7 @@
 	char *s;
 	char *var, *value;
 	
-	while((s = strsep(&stringp, "|"))) {
+	while ((s = strsep(&stringp, "|"))) {
 		value = s;
 		if ((var = strsep(&value, "=")) && value) {
 			if (!strcasecmp(var, "attach")) {
@@ -341,37 +341,37 @@
 			} else if (!strcasecmp(var, "delete")) {
 				vmu->delete = ast_true(value);
[...1014 lines suppressed...]
- 	       	case '1':
- 			if (!message_exists) {
+	while ((cmd >= 0) && (cmd != 't')) {
+		switch (cmd) {
+		case '1':
+			if (!message_exists) {
  				/* In this case, 1 is to record a message */
  				cmd = '3';
  				break;
@@ -4718,8 +4712,8 @@
  				/* Message is all silence */
  				ast_verbose(VERBOSE_PREFIX_3 "Nothing recorded\n");
  				cmd = vm_delete(recordfile);
-	                        cmd = ast_play_and_wait(chan, "vm-nothingrecorded");
-                                if (!cmd)
+				cmd = ast_play_and_wait(chan, "vm-nothingrecorded");
+				if (!cmd)
  					cmd = ast_play_and_wait(chan, "vm-speakup");
  				break;
  			}




More information about the svn-commits mailing list