mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
(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
This commit is contained in:
@@ -356,6 +356,7 @@ static int record_exec(struct ast_channel *chan, void *data)
|
|||||||
if (!f) {
|
if (!f) {
|
||||||
ast_debug(1, "Got hangup\n");
|
ast_debug(1, "Got hangup\n");
|
||||||
res = -1;
|
res = -1;
|
||||||
|
ast_filedelete(args.filename, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gotsilence) {
|
if (gotsilence) {
|
||||||
|
|||||||
Reference in New Issue
Block a user