aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-14 19:03:52 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-14 19:03:52 +0000
commit2bcf7f097c839ce1f8ff29b4722d7fa4d558f005 (patch)
tree3ea0481fe8dbaa2f33256535a039ea0ebc3de24c /apps/app_record.c
parent6f90402424e9d73a1e6f804356ee68648c236c07 (diff)
When recording, strip off last 1/4 second from recordings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@848 f38db490-d61c-443f-a65b-d21fe96a405b
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);