[Asterisk-bsd] View status on ISDN card using chan_capi

Hans Petter Selasky hselasky at c2i.net
Thu Jun 22 00:41:53 MST 2006


On Thursday 22 June 2006 01:45, Matthias Fechner wrote:
> Hi,
>
> I have now two ISDN HFC-S cards running (thx to HPS for the great
> driver).
>
> I use for my SIP and IAX2 channels something like:
> exten => 200,hint,SIP/200
> exten => 201,hint,SIP/201
> exten => 202,hint,IAX2/202
>
> So i can see perfectly with 'show hints' the status of the lines and
> they are displayed on my GXP-2000.
>
> Is that for the ISDN cards also possible?
>

There is a command, "capi info", that will display information about the ISDN 
cards. It will display something like this:

CAPI thread [0x0] {
 Application ID     : 0x00000000
 Application uptime : 0x000001c9 seconds

 Call descriptor statistics:
    allocation count        : 0x00000000 call descriptors
    free count              : 0x00000000 call descriptors
    in memory count         : 0x00000000 call descriptors
    in use count            : 0x00000000 call descriptors
    record allocation rate  :     0x0000 calls/second
    limit allocation rate   :     0x0010 calls/second
}
Config entry 'ISDN2' {
 b_channels_curr : 2 call descriptor(s) free
 b_channels_max  : 2 call descriptor(s) total
}
Config entry 'ISDN1' {
 b_channels_curr : 2 call descriptor(s) free
 b_channels_max  : 2 call descriptor(s) total
}

And when you make a call, it will show the controller also:

CAPI controller 0x9 {
 active     : 0x0001 call descriptors
 on hold    : 0x0000 call descriptors
 B-channels : 0x0040 units
}

Yours
--HPS


More information about the Asterisk-BSD mailing list