[asterisk-commits] mmichelson: trunk r136720 - /trunk/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 7 18:38:08 CDT 2008


Author: mmichelson
Date: Thu Aug  7 18:38:08 2008
New Revision: 136720

URL: http://svn.digium.com/view/asterisk?view=rev&rev=136720
Log:
Fix build for non-IMAP storage and get rid of some
debug messages.
Thanks to eliel for alerting me.
No thanks to buildbot.


Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=136720&r1=136719&r2=136720
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Aug  7 18:38:08 2008
@@ -5819,7 +5819,9 @@
 			break;
 		case '2': 
 			/* NULL out introfile so we know there is no intro! */
+#ifdef IMAP_STORAGE
 			*vms->introfn = '\0';
+#endif
 			cmd = 't';
 			break;
 		case '*':
@@ -6446,7 +6448,6 @@
 
 	snprintf(filename, sizeof(filename), "%s.txt", vms->fn);
 	RETRIEVE(vms->curdir, vms->curmsg, vmu->mailbox, vmu->context);
-	ast_log(LOG_NOTICE, "I just retrieved %s and %s\n", vms->fn, S_OR(vms->introfn, "No intro"));
 	msg_cfg = ast_config_load(filename, config_flags);
 	if (!msg_cfg) {
 		ast_log(LOG_WARNING, "No message attribute file?!! (%s)\n", filename);
@@ -6561,7 +6562,6 @@
 		}
 	}
 	DISPOSE(vms->curdir, vms->curmsg);
-	ast_log(LOG_NOTICE, "I just disposed of %s and %s\n", vms->fn, S_OR(vms->introfn, "No intro"));
 	return res;
 }
 
@@ -6724,7 +6724,7 @@
 			cause RENAME() will overwrite files, but will keep duplicate records in RT-storage */
 			make_file(vms->fn, sizeof(vms->fn), vms->curdir, x);
 			if (EXISTS(vms->curdir, x, vms->fn, NULL))
-				DELETE(vms->curdir, x, vms->fn);
+				DELETE(vms->curdir, x, vms->fn, vmu);
 		}
 	} 
 




More information about the asterisk-commits mailing list