summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2008-12-16 22:45:39 +0000
committerJeff Peeler <jpeeler@digium.com>2008-12-16 22:45:39 +0000
commit91b4a30be827ccb8f71660394ea4e6b21e885814 (patch)
treecc14c89924f05197a5306032e737c8a28942745e /apps
parent2e59fce6d84b2ea4dc1f77ca586c633537db8d2c (diff)
(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
Diffstat (limited to 'apps')
-rw-r--r--apps/app_record.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index a87d6cf71..ce6736d89 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) {