Hello, I am using chan_capi 0.3.5 and Asterisk CVS-v1-0-12/29/04-15:32:48 on a SuSE Linux 9.0 with Kernel 2.4.21-99-default In the system is a AVM C4 with one port connected to PSTN at PTP BRI and another one to an ISDN PBX with an PMP BRI. The system is running fine, but I have regualary this error, and then chan_capi is not working anymore. Jan 18 15:29:46 WARNING[2919]: Avoided initial deadlock for 'CAPI[contr1/1429092]/128', 10 retries! .... Jan 18 16:00:09 WARNING[2919]: Avoided initial deadlock for 'CAPI[contr1/1429092]/128', 10 retries! I have searched the archives and found two hints: 1.) Hard disk 2.) Patch to chan_capi To 1.) I do not think that is the problem. It is an older PIII 500 but with only 5 users there should not be a problem? top shows 92 to 98 % processor idle time. To 2.) I did not tried it. The patch should solute that problems and enable faxing? Has anybody experiences with it? If there is a problem why is not kapejod solving that? I hope you could help me, I have some really angry customers. Regards Felix
On Thursday, 20 January, 2005 14:42 : Felix Deierlein <mails.asterisk@epyron.de> wrote:> Jan 18 16:00:09 WARNING[2919]: Avoided initial deadlock for > 'CAPI[contr1/1429092]/128', 10 retries! > > 2.) Patch to chan_capi > I did not tried it. The patch should solute that problems and enable > faxing? Has anybody experiences with it? If there is a problem why is > not kapejod solving that?You should try :) If you don't want the fax support, you can just change this line : --- original/chan_capi.c Fri Aug 13 12:07:28 2004 +++ chan_capi/chan_capi.c Wed Oct 27 18:55:32 2004 @@ -556,7 +556,7 @@ } } // wait for the B3 layer to go down - while (i->state != CAPI_STATE_CONNECTED) { + while ((i->state != CAPI_STATE_CONNECTED) && (i->state !CAPI_STATE_DISCONNECTED)) { usleep(10000); } } kapejod is (was ?) quite unresponsive. -- Carl
>>I had applied the patch and it got much better. Now I only have >>problems every two days.... >> >> >> >563 usleep(10000); > > >10000 is too high you can safely lower it to sleep(1) there's a while over there otherwise it will lock the channel for 10 seconds. that's code from chan_capi fax patch right? Sergio