[asterisk-users] chan-capi-HEAD and Asterisk 1.4.2
armin at melware.de
Mon Apr 2 23:26:54 MST 2007
On Mon, 2 Apr 2007, Peer Oliver Schmidt wrote:
> Hello Armin,
> >> root at server42:~# grep capi /var/log/asterisk/messages
> >> [Mar 31 16:17:03] ERROR chan_capi.c: Unable to listen on contr1
> >> (error=0x100f)
> >> Is this helpful, or do you need more information?
> > Yes, at this state it might be possible that less CPU power causes
> > problems. The 'listen' command expects an answer and maybe it is coming too
> > late. Can you please try the patch below?
> > Index: chan_capi.c
> > ===================================================================
> > --- chan_capi.c (revision 436)
> > +++ chan_capi.c (working copy)
> > @@ -631,7 +631,7 @@
> > error = LISTEN_CONF_INFO(&CMSG);
> > break;
> > }
> > - usleep(20000);
> > + usleep(100000);
> tried the patch, but it did not work. It waits quite a long time
> before the chan-capi error message comes up, according to the time
> stamp it is about 12 seconds. It is kind of strange, that the whole
> startup process for asterisk usually takes only about 4-5 seconds.
That's too long, normaly the confirmation message arrives within a few
msecs. So it seems that the driver isn't responding.
> Do you need additional information?
Which card/driver do you use?
A debug log (capi trace) from the driver or kernelcapi helps to see
what messages are wrong/missing.
More information about the asterisk-users