aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 22:51:55 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 22:51:55 +0000
commita3577cdd761e0a42070f317c9e78fef178a5c204 (patch)
tree7f2c40d014a41982e01c7f043dc3ebf9da881c93 /apps/app_record.c
parent3e8b8753f772ffc0c680f993ac2fc13a3d032ead (diff)
Merged revisions 164942 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r164942 | jpeeler | 2008-12-16 16:45:39 -0600 (Tue, 16 Dec 2008) | 6 lines (closes issue #13669) Reported by: pj Delete file recording if recording terminated from a hangup. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@164958 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_record.c')
-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 7214e1f07..bef9f1a76 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -325,6 +325,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) {