aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_record.c')
-rwxr-xr-xapps/app_record.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 7382a2361..7b02be43b 100755
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -138,6 +138,9 @@ static int record_exec(struct ast_channel *chan, void *data)
ast_log(LOG_DEBUG, "Got hangup\n");
res = -1;
}
+ /* Strip off the last 1/4 second of it */
+ ast_stream_rewind(s, 250);
+ ast_truncstream(s);
ast_closestream(s);
} else
ast_log(LOG_WARNING, "Could not create file %s\n", fil);