mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-31 18:55:19 +00:00
Fix incorrect endpos when sildet is used during AGI record (bug 1210)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -625,6 +625,7 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char
|
|||||||
if (gotsilence) {
|
if (gotsilence) {
|
||||||
ast_stream_rewind(fs, silence-1000);
|
ast_stream_rewind(fs, silence-1000);
|
||||||
ast_truncstream(fs);
|
ast_truncstream(fs);
|
||||||
|
sample_offset = ast_tellstream(fs);
|
||||||
}
|
}
|
||||||
fdprintf(agi->fd, "200 result=%d (timeout) endpos=%ld\n", res, sample_offset);
|
fdprintf(agi->fd, "200 result=%d (timeout) endpos=%ld\n", res, sample_offset);
|
||||||
ast_closestream(fs);
|
ast_closestream(fs);
|
||||||
|
|||||||
Reference in New Issue
Block a user