> 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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to