diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-16 22:45:39 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-16 22:45:39 +0000 |
commit | bfafc90d85624d08d064b68971ff11c96795521f (patch) | |
tree | cc14c89924f05197a5306032e737c8a28942745e /apps | |
parent | 843fe0f9972c2075fab10691362a7ebd3b06215f (diff) |
(closes issue #13669)
Reported by: pj
Delete file recording if recording terminated from a hangup.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164942 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_record.c | 1 |
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) { |