[chan-capi-users] Question about BCHANNELINFO
Armin Schindler
armin at melware.de
Wed Aug 6 09:35:54 CEST 2008
On Wed, 6 Aug 2008, Stefan-Michael Guenther wrote:
> Hi,
>
> 2 or 3 weeks ago I started a thread about how to check whether all
> B-channels on an isdn card are busy. Some of you pointed me to the
> BCHANNEL-variable.
>
> This works perfectly for me on a simple FritzCard, but what happens if
> my asterisk server uses 2 isdn cards withs 4 ports on each card?
> How can I distinguish between the two cards?
>
> Another example: One of out clients has a 4 port card. The first port
> is for private use, the second port for one company and the other two
> ports ports for another company. Is there still a way to check, if e.g.
> only the two B-channels on the second port are busy?
I'm not sure what you mean.
On incoming call, chan_capi sets the BCHANNELINFO of *that* call. That
doesn't mean that other channels are in use or not. It just gives the info
if a bchannel is used for this call or not.
If your question is about outgoing calls and you want to know the amount of
channels, you have a CLI command line 'capi show channels' or use a COUNT
variable in the dialplan.
Armin
More information about the Chan-capi-users
mailing list