projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incorrect endpos when sildet is used during AGI record (bug 1210)
[asterisk/asterisk.git]
/
apps
/
app_agi.c
diff --git
a/apps/app_agi.c
b/apps/app_agi.c
index
9e083f2
..
67b017d
100755
(executable)
--- 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);
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);
}
fdprintf(agi->fd, "200 result=%d (timeout) endpos=%ld\n", res, sample_offset);
ast_closestream(fs);