[svn-commits] oej: branch oej/minivoicemail r58348 - /team/oej/minivoicemail/apps/app_minivm.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Mar 8 03:21:01 MST 2007


Author: oej
Date: Thu Mar  8 04:21:01 2007
New Revision: 58348

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58348
Log:
(no comment)

Modified:
    team/oej/minivoicemail/apps/app_minivm.c

Modified: team/oej/minivoicemail/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/team/oej/minivoicemail/apps/app_minivm.c?view=diff&rev=58348&r1=58347&r2=58348
==============================================================================
--- team/oej/minivoicemail/apps/app_minivm.c (original)
+++ team/oej/minivoicemail/apps/app_minivm.c Thu Mar  8 04:21:01 2007
@@ -1574,17 +1574,15 @@
 		pbx_builtin_setvar_helper(chan, "MVM_DURATION", timebuf);
 		pbx_builtin_setvar_helper(chan, "MVM_FORMAT", fmt);
 
-		/* Notify of new message to e-mail and pager */
-		notify_new_message(chan, vmu, tmptxtfile, duration, fmt, chan->cid.cid_num, chan->cid.cid_name);
 	}
 	global_stats.lastreceived = time(NULL);
 	global_stats.receivedmessages++;
-	/* Go ahead and delete audio files from system, they're not needed any more */
-	if (ast_fileexists(tmptxtfile, NULL, NULL) <= 0) {
-		ast_filedelete(tmptxtfile, NULL);
-		if (option_debug > 1)
-			ast_log(LOG_DEBUG, "-_-_- Deleted audio file after notification :: %s \n", tmptxtfile);
-	}
+//	/* Go ahead and delete audio files from system, they're not needed any more */
+//	if (ast_fileexists(tmptxtfile, NULL, NULL) <= 0) {
+//		ast_filedelete(tmptxtfile, NULL);
+//		if (option_debug > 1)
+//			ast_log(LOG_DEBUG, "-_-_- Deleted audio file after notification :: %s \n", tmptxtfile);
+//	}
 
 	if (res > 0)
 		res = 0;
@@ -1963,11 +1961,12 @@
 	} 
 
 	/* Go ahead and delete audio files from system, they're not needed any more */
+	/* We should look for both audio and text files here */
 	if (ast_fileexists(filename, NULL, NULL) < 0) {
 		res = vm_delete(filename);
 		if (res) {
 			if (option_debug > 1)
-				ast_log(LOG_DEBUG, "Can't delete file: %s\n", filename);
+				ast_log(LOG_DEBUG, "-_-_- Can't delete file: %s\n", filename);
 			pbx_builtin_setvar_helper(chan, "MINIVM_DELETE_STATUS", "FAILED");
 		} else {
 			if (option_debug > 1)
@@ -1976,7 +1975,7 @@
 		}
 	} else {
 		if (option_debug > 1)
-			ast_log(LOG_DEBUG, "Filename does not exist: %s\n", filename);
+			ast_log(LOG_DEBUG, "-_-_- Filename does not exist: %s\n", filename);
 		pbx_builtin_setvar_helper(chan, "MINIVM_DELETE_STATUS", "FAILED");
 	}
 	



More information about the svn-commits mailing list