From owner-freebsd-isdn@FreeBSD.ORG Sun Nov 11 21:50:10 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 4F60BD6 for ; Sun, 11 Nov 2012 21:50:10 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id CB2C88FC12 for ; Sun, 11 Nov 2012 21:50:09 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 342367160; Sun, 11 Nov 2012 22:45:01 +0100 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org Subject: Re: ISDN4BSD (HPS version) is going into ports Date: Sun, 11 Nov 2012 22:46:44 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <509E87EF.9070607@incore.de> In-Reply-To: <509E87EF.9070607@incore.de> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211112246.44683.hselasky@c2i.net> Cc: Andreas Longwitz 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: Sun, 11 Nov 2012 21:50:10 -0000 On Saturday 10 November 2012 17:59:27 Andreas Longwitz wrote: > 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(). Hi, I'll have a look at this issue this week. Sounds like reproducible. We probably should compare with other channel drivers what they are doing. Do you see this problem using older versions of asterisk? --HPS