On 17 Apr 2007, at 22:32, Lenz wrote:

Hello list,
we are developing a new application that uses the Manager API in order to find a set of channels where variables are set in a predefined way. To do this, we currently send a Status command to obtain all available channels and then query them all, one by one, fot the status of a certain dialplan variable. As you can imagine, this gets rapidly pretty tedious as the number of active channels on a server grows and requires a lot of round-trips to and from the Asterisk server.

I was wondering if there are more efficient ways to get:
1. a variable as set on all channels
2. the complete list of channel variables for one channel, using standard manager response block and not reverting to an execute CLI command " show channel Local/[EMAIL PROTECTED] "

Anybody has ideas/hints on how to make all this a bit less cumbersome?

You could query via SNMP. it has the astChanVariables for each active channel
as a DisplayString

I can't promise that this is less cumbersome, but the overhead might be smaller.



Tim Panton

www.mexuar.net
www.westhawk.co.uk/



_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to