[asterisk-commits] jpeeler: trunk r164942 - /trunk/apps/app_record.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 16 16:45:40 CST 2008


Author: jpeeler
Date: Tue Dec 16 16:45:39 2008
New Revision: 164942

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164942
Log:
(closes issue #13669)
Reported by: pj

Delete file recording if recording terminated from a hangup.


Modified:
    trunk/apps/app_record.c

Modified: trunk/apps/app_record.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_record.c?view=diff&rev=164942&r1=164941&r2=164942
==============================================================================
--- trunk/apps/app_record.c (original)
+++ trunk/apps/app_record.c Tue Dec 16 16:45:39 2008
@@ -356,6 +356,7 @@
 	if (!f) {
 		ast_debug(1, "Got hangup\n");
 		res = -1;
+		ast_filedelete(args.filename, NULL);
 	}
 
 	if (gotsilence) {




More information about the asterisk-commits mailing list