[asterisk-users] asterisk 11 and DAHDI/i4

Richard Mudgett rmudgett at digium.com
Thu Dec 20 11:24:21 CST 2012


> It is
> Action: ExtensionState
> Exten: 5551212
> Context: fubar
> 
> This will return the status of the dialplan exten hint.
> 
> > and > Action: Command > Command: ChanIsAvail > Parameters: DAHDI/1
> > > > says Error > No such command "ChanIsAvail" ChanIsAvail is a
> > dialplan application not a CLI command.  It also
> will not work for what you want in this case.
> 
> > I'm clearly missing something? Quite possibly. :)
> 
> Richard OK - so what I am trying to do is through the AMI interface
> ask if channel DAHDI/1 is busy, on hook or available.
> 
> How do I tell that....
> 
> In the past I simply did a "core show channels" and see if DAHDI/1
> was present.
> It it was I new it was in use...
> 
> How do check now in asterisk 11 if the channels are reported as
> DAHDI/i4 etc...

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.

Richard



More information about the asterisk-users mailing list