ISDN4BSD (HPS version) is going into ports

Andreas Longwitz longwitz at incore.de
Mon Nov 12 09:43:40 UTC 2012


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



More information about the freebsd-isdn mailing list