[asterisk-users] asterisk 11 and DAHDI/i4

Richard Mudgett rmudgett at digium.com
Thu Dec 20 11:58:55 CST 2012


> You should just cache the AMI DAHDIChannel event information in your
> program.
> 
> If you really must you could use the CLI command "pri show channels".
> However, it is not intended to be repeatedly run for performance
> reasons.  It blocks processing of ISDN messages while it is running.
> I am not continually logged in to the AMI to catch those events...
> 
> Can I make a call to a local channel, run some context+ extension,
> there call ChanIsAvail for the channel I am interested in -
> but they how do I get that info back to my C program?
> 
> Also is that a big overhead?

Whether the overhead is going to affect performance to be a problem
depends on how often you execute the command.

You can also use the AMI DAHDIShowChannels action.  If the channel has
a B channel it will be listed with which B channel it currently is
attached.

Richard



More information about the asterisk-users mailing list