aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk14
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
parentff55b7f3313cccc0b95e0f87bd07bcd333cade4e (diff)
downloadports-71a2718fcea85ace1fece0e4015f7696c79f9d53.tar.gz
ports-71a2718fcea85ace1fece0e4015f7696c79f9d53.zip
Notes
Diffstat (limited to 'net/asterisk14')
-rw-r--r--net/asterisk14/Makefile2
-rw-r--r--net/asterisk14/files/patch-res_res__agi.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/net/asterisk14/Makefile b/net/asterisk14/Makefile
index fd8954ffa311..1c543a0c4574 100644
--- a/net/asterisk14/Makefile
+++ b/net/asterisk14/Makefile
@@ -7,7 +7,7 @@
PORTNAME= asterisk
PORTVERSION= 1.4.21.2
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= net
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
http://ftp.digium.com/pub/asterisk/old-releases/
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);