aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk14/files/patch-res_res__agi.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2008-11-12 18:45:25 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2008-11-12 18:45:25 +0000
commit71a2718fcea85ace1fece0e4015f7696c79f9d53 (patch)
tree2545e53349b234c05ec684cbcd3856f4a4ea5a3e /net/asterisk14/files/patch-res_res__agi.c
parentff55b7f3313cccc0b95e0f87bd07bcd333cade4e (diff)
downloadports-71a2718fcea85ace1fece0e4015f7696c79f9d53.tar.gz
ports-71a2718fcea85ace1fece0e4015f7696c79f9d53.zip
Notes
Diffstat (limited to 'net/asterisk14/files/patch-res_res__agi.c')
-rw-r--r--net/asterisk14/files/patch-res_res__agi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/asterisk14/files/patch-res_res__agi.c b/net/asterisk14/files/patch-res_res__agi.c
new file mode 100644
index 000000000000..2e2f3c68a5ec
--- /dev/null
+++ b/net/asterisk14/files/patch-res_res__agi.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- res/res_agi.c
++++ res/res_agi.c
+@@ -969,7 +969,7 @@
+
+ start = ast_tvnow();
+ while ((ms < 0) || ast_tvdiff_ms(ast_tvnow(), start) < ms) {
+- res = ast_waitfor(chan, -1);
++ res = ast_waitfor(chan, ms - ast_tvdiff_ms(ast_tvnow(), start));
+ if (res < 0) {
+ ast_closestream(fs);
+ fdprintf(agi->fd, "200 result=%d (waitfor) endpos=%ld\n", res,sample_offset);