aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk10
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2008-11-13 02:45:25 +0800
committersobomax <sobomax@FreeBSD.org>2008-11-13 02:45:25 +0800
commit4ded5f3254c9ac79e183148519ff03dbce3307a5 (patch)
treecdad98ed4850559be9c0fc7ee5b427a097f26484 /net/asterisk10
parentdec1956cf3cef4f122efa18b7d4702d4c8d0df76 (diff)
downloadfreebsd-ports-gnome-4ded5f3254c9ac79e183148519ff03dbce3307a5.tar.gz
freebsd-ports-gnome-4ded5f3254c9ac79e183148519ff03dbce3307a5.tar.zst
freebsd-ports-gnome-4ded5f3254c9ac79e183148519ff03dbce3307a5.zip
Fix a bug resulting in recording hanging up indefinitely when connection
to peer drops.
Diffstat (limited to 'net/asterisk10')
-rw-r--r--net/asterisk10/Makefile2
-rw-r--r--net/asterisk10/files/patch-res_res__agi.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile
index fd8954ffa311..1c543a0c4574 100644
--- a/net/asterisk10/Makefile
+++ b/net/asterisk10/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/asterisk10/files/patch-res_res__agi.c b/net/asterisk10/files/patch-res_res__agi.c
new file mode 100644
index 000000000000..2e2f3c68a5ec
--- /dev/null
+++ b/net/asterisk10/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);