aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_agi.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-12 18:49:52 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-12 18:49:52 +0000
commit0cefe565e1df2b61fe07374376c25eb79374991a (patch)
treea0584f66c9340a673b030bf97c8fe7c0f619854a /apps/app_agi.c
parent7a6a2ebdda624ed2e181033d515b2b86b967b11f (diff)
Fix incorrect endpos when sildet is used during AGI record (bug 1210)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2408 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_agi.c')
-rwxr-xr-xapps/app_agi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c
index 9e083f231..67b017d2c 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);