From owner-freebsd-isdn@FreeBSD.ORG Sat Nov 10 17:05:02 2012 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FE819D2 for ; Sat, 10 Nov 2012 17:05:02 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) by mx1.freebsd.org (Postfix) with ESMTP id 384B78FC12 for ; Sat, 10 Nov 2012 17:05:01 +0000 (UTC) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id 35A375C7CF for ; Sat, 10 Nov 2012 17:59:29 +0100 (CET) X-Virus-Scanned: amavisd-new at incore.de Received: from dss.incore.de ([10.3.0.3]) by inetmail.dmz (inetmail.dmz [10.3.0.3]) (amavisd-new, port 10024) with LMTP id 7dwRCCKUq-7c for ; Sat, 10 Nov 2012 17:59:28 +0100 (CET) Received: from mail.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id 7897B5C7D6 for ; Sat, 10 Nov 2012 17:59:28 +0100 (CET) Received: from bsdmhs.longwitz (unknown [192.168.99.6]) by mail.incore (Postfix) with ESMTP id 36A685084C for ; Sat, 10 Nov 2012 17:59:28 +0100 (CET) Message-ID: <509E87EF.9070607@incore.de> Date: Sat, 10 Nov 2012 17:59:27 +0100 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: freebsd-isdn@freebsd.org Subject: ISDN4BSD (HPS version) is going into ports Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2012 17:05:02 -0000 Hi, I am runnung FreeBSD 8.3 with isdn4bsd 2.0.4 + chan_capi 2.0.2 from ports and asterisk 1.8.16. On my production system with two HFC-4S adapters (one in NT-mode, the other in TE-mode) and some SIP-phones I have the following problem: asterisk runs in a deadlock two or three times a week, nothing but kill -9 helps. During looking for a possible reason for the deadlock I found that asterisk never destroys a channel from a call initiated inbound by i4b. On the asterisk console the command "capi show" always gives the correct infos about busy isdn channels, but "core show channels verbose" lists more and more channels. For every call incoming via i4b the channel remains in the list of active asterisk channels. Outgoing isdn channels and all sip channels disappear after hangup. For a call incoming via i4b I see on hangup that chan_capi_hangup() is called and then cd_free() with state=6 (CAPI_STATE_CONNECTED), send_release_complete=1, causeOut=0x3490 and hangup_what=0. Afterwards I see the call of capi_send_disconnect_req. In the case of dir_incoming I can see nothing that informs asterisk about the free channel. I suppose in the case dir_outgoing this is done by "ast_setstate(pbx_chan, AST_STATE_DOWN)" in cd_free(). -- Andreas Longwitz