From owner-freebsd-isdn@FreeBSD.ORG Mon Nov 12 09:43:40 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 94F5A901 for ; Mon, 12 Nov 2012 09:43:40 +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 4C2468FC13 for ; Mon, 12 Nov 2012 09:43:39 +0000 (UTC) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id 0776A5C81F; Mon, 12 Nov 2012 10:43:33 +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 OJx67US8Wrko; Mon, 12 Nov 2012 10:43:32 +0100 (CET) Received: from mail.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id 4958C5C825; Mon, 12 Nov 2012 10:43:32 +0100 (CET) Received: from bsdlo.incore (bsdlo.incore [192.168.0.84]) by mail.incore (Postfix) with ESMTP id 433D95084C; Mon, 12 Nov 2012 10:43:32 +0100 (CET) Message-ID: <50A0C4C4.9010100@incore.de> Date: Mon, 12 Nov 2012 10:43:32 +0100 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: ISDN4BSD (HPS version) is going into ports References: <509E87EF.9070607@incore.de> <201211112246.44683.hselasky@c2i.net> In-Reply-To: <201211112246.44683.hselasky@c2i.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit 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: Mon, 12 Nov 2012 09:43:40 -0000 Hi, >> 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. As far as I can see sip_hangup() makes no difference between incoming and outgoing calls. chan_capi_hangup() calls cd_free(cd, 0), a function with extra handling for dir_outgoing. > > Do you see this problem using older versions of asterisk? Difficult to say. In asterisk 1.4 (with FreeBSD 6) not, in asterisk 1.6 probably yes. -- Andreas Longwitz