Zaptel port
Ian FREISLICH
ianf at clue.co.za
Wed Dec 5 04:52:09 PST 2007
Hi
Folling my previous post about zaptel and asterisk, I've done a lot
of searching and the following patch from a very recent post to the
asterisk-bsd digium list solves the asterisk/zaptel lockup at least
for the 7.0 case. I'd suggest this patch making it into the
7-RELEASE cycle otherwise the latest branch that Asterisk with zaptel
will work on is 6.x.
The first chunk of this patch is already in the ports system.
Ian
--
Ian Freislich
-------------- next part --------------
--- zaptel/zaptel.c.orig Sun Jun 25 14:21:49 2006
+++ zaptel/zaptel.c Fri Aug 11 11:56:20 2006
@@ -397,7 +397,7 @@
int schluffen(void *q)
{
- int rc = tsleep(q, PZERO | PCATCH, "schluffen", 0);
+ int rc = tsleep(q, PZERO | PCATCH, "schluffen", 10);
switch(rc)
{
case EINTR:
--- zaptel/zaptel.c.orig 2007-12-05 14:39:49.000000000 +0200
+++ zaptel/zaptel.c 2007-12-05 14:40:10.000000000 +0200
@@ -675,7 +675,7 @@
/* Free dev_info, if exist */
if(dev->si_drv2) free(dev->si_drv2, M_ZAP);
dev->si_drv2 = NULL;
- destroy_dev(dev);
+ destroy_dev_sched(dev);
return res;
}
@@ -1290,7 +1290,7 @@
ZAP_LOCK_DESTROY(toselwakeup_lock);
if(dev_ctl)
- destroy_dev(dev_ctl);
+ destroy_dev_sched(dev_ctl);
break; /* Success*/
More information about the freebsd-current
mailing list