From owner-freebsd-isdn@FreeBSD.ORG Tue Nov 13 11:01:18 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 A555B747 for ; Tue, 13 Nov 2012 11:01:18 +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 2CD068FC13 for ; Tue, 13 Nov 2012 11:01:15 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 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 342999703; Tue, 13 Nov 2012 12:01:09 +0100 From: Hans Petter Selasky To: Andreas Longwitz Subject: Re: ISDN4BSD (HPS version) is going into ports Date: Tue, 13 Nov 2012 12:02:47 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <509E87EF.9070607@incore.de> <201211112246.44683.hselasky@c2i.net> <50A174C2.2050807@incore.de> In-Reply-To: <50A174C2.2050807@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: <201211131202.47188.hselasky@c2i.net> Cc: freebsd-isdn@freebsd.org 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: Tue, 13 Nov 2012 11:01:18 -0000 Hi, The issue about "core show channels" that shows more and more channels, happens only in Asterisk 1.8.x and is due to chan_capi not updating the channel name correctly according to how Asterisk expects it being done. The issue about deadlock should be solved by moving the channel allocation outside of the CAPI applications lock. Channel free is already outside this lock. There now will always be a free channel, when no call is pending. Please also note that the CDR start time might be different than before. That means it should be set to the time when the PBX thread was started for incoming calls, not when doing DID (dial in digits), and for outgoing calls, when the asterisk channel was allocated. Fixes are available in my I4B SVN repository in the trunk/chan_capi folder. Please test and report back! Thanks for valuable feedback! --HPS