summaryrefslogtreecommitdiff
path: root/apps/app_record.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-14 19:03:52 +0000
committerMark Spencer <markster@digium.com>2003-04-14 19:03:52 +0000
commit4fef1b32cdc1ecc57c70c2c4e940ee5d6648c25d (patch)
tree3ea0481fe8dbaa2f33256535a039ea0ebc3de24c /apps/app_record.c
parent21dd479a6bfe474fc73db57f19a5b3f413406a6d (diff)
When recording, strip off last 1/4 second from recordings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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);