Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2012 22:46:44 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-isdn@freebsd.org
Cc:        Andreas Longwitz <longwitz@incore.de>
Subject:   Re: ISDN4BSD (HPS version) is going into ports
Message-ID:  <201211112246.44683.hselasky@c2i.net>
In-Reply-To: <509E87EF.9070607@incore.de>
References:  <509E87EF.9070607@incore.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211112246.44683.hselasky>