diff options
Diffstat (limited to 'net/asterisk16/files/patch-res_res__agi.c')
-rw-r--r-- | net/asterisk16/files/patch-res_res__agi.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/asterisk16/files/patch-res_res__agi.c b/net/asterisk16/files/patch-res_res__agi.c new file mode 100644 index 000000000000..2e2f3c68a5ec --- /dev/null +++ b/net/asterisk16/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); |