Skip to content
Snippets Groups Projects
Commit 4fef1b32 authored by Mark Spencer's avatar Mark Spencer
Browse files

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
parent 21dd479a
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,9 @@ static int record_exec(struct ast_channel *chan, void *data) ...@@ -138,6 +138,9 @@ static int record_exec(struct ast_channel *chan, void *data)
ast_log(LOG_DEBUG, "Got hangup\n"); ast_log(LOG_DEBUG, "Got hangup\n");
res = -1; res = -1;
} }
/* Strip off the last 1/4 second of it */
ast_stream_rewind(s, 250);
ast_truncstream(s);
ast_closestream(s); ast_closestream(s);
} else } else
ast_log(LOG_WARNING, "Could not create file %s\n", fil); ast_log(LOG_WARNING, "Could not create file %s\n", fil);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment