[Asterisk-bsd] FreeBSD 7 and zaptel-bsd

User Lenzi lenzi at k1.com.br
Tue Dec 4 04:45:31 CST 2007


Em Sex, 2007-11-02 às 12:55 +1100, Tony escreveu:
> 
> FreeBSD 7.0 is now in beta . Has anybody had any luck getting
> zaptel-bsd to work under FreeBSD 7?
The zaptel module as version 1.4.6  (in the ports) really locks in the
kernel in the "destroy" function. 
In release freebsd prior to 7.0 the destroy does not "destroy"  de
entries in /dev and silent ignores it... But in 7.0 it waits for
something (may be to free/unlock) all the resources.. 
A rapid solution is to ignore the destroy call in zaptel close
routine...
=======================================







--- zaptel/zaptel.c.orig        2007-01-26 08:51:48.000000000 +0000
+++ zaptel/zaptel.c     2007-11-10 13:15:51.000000000 +0000
@@ -396,7 +396,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:
@@ -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(dev);
        return res;
 }
 















More information about the Asterisk-BSD mailing list