X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=apps%2Fapp_agi.c;h=67b017d2c3a9ba53634b1269660e362c283e15bd;hp=9e083f23183a5b425285e9b98bd21db13de626ac;hb=4efa995ae1185e111ccce5d750b44b175a61758b;hpb=f1330f7efd4b15cc76e9b0b69872c85d97267067 diff --git a/apps/app_agi.c b/apps/app_agi.c index 9e083f2..67b017d 100755 --- a/apps/app_agi.c +++ b/apps/app_agi.c @@ -625,6 +625,7 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char if (gotsilence) { ast_stream_rewind(fs, silence-1000); ast_truncstream(fs); + sample_offset = ast_tellstream(fs); } fdprintf(agi->fd, "200 result=%d (timeout) endpos=%ld\n", res, sample_offset); ast_closestream(fs);