From: Mark Spencer Date: Mon, 14 Apr 2003 19:03:52 +0000 (+0000) Subject: When recording, strip off last 1/4 second from recordings X-Git-Tag: 0.5.0~648 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fef1b32cdc1ecc57c70c2c4e940ee5d6648c25d;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_record.c b/apps/app_record.c index 7382a23610..7b02be43b7 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);