From: Jeff Peeler Date: Tue, 16 Dec 2008 22:45:39 +0000 (+0000) Subject: (closes issue #13669) X-Git-Tag: 1.6.2.0-beta1~579 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91b4a30be827ccb8f71660394ea4e6b21e885814;p=thirdparty%2Fasterisk.git (closes issue #13669) Reported by: pj Delete file recording if recording terminated from a hangup. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164942 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_record.c b/apps/app_record.c index a87d6cf718..ce6736d89b 100644 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -356,6 +356,7 @@ static int record_exec(struct ast_channel *chan, void *data) if (!f) { ast_debug(1, "Got hangup\n"); res = -1; + ast_filedelete(args.filename, NULL); } if (gotsilence) {