[asterisk-users] Querying channel variables via the Manager API

2007-04-17 Thread Lenz
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 c

Re: [asterisk-users] Querying channel variables via the Manager API

2007-04-17 Thread Earl Terwilliger
Hi Lenz, Why not do it the same way as you do the queue log (for queuemetrics)? i.e. have a program which captures all events (or certain events), logs them to a MySql database and then you just query the database. There are many packages out there that run an Asterisk manager command at freque

Re: [asterisk-users] Querying channel variables via the Manager API

2007-04-17 Thread lenz
Hi Earl, I was looking for something completely stateless - the problem with the approach you propose is that sometimes an event gets lost, or not logged correctly, and an engine like QueueMetrics' contains way too much code to handle such cases, even though Asterisk's logging facilities ar

Re: [asterisk-users] Querying channel variables via the Manager API

2007-04-17 Thread Philipp von Klitzing
Hi! > I was thinking that there must be a way to tell Asterisk "give me a > complete dump of all the available channel information including > variables" In Asterisk 1.4: "show application DumpChan" Cheers, Philipp ___ --Bandwidth and Colocation

Re: [asterisk-users] Querying channel variables via the Manager API

2007-04-17 Thread lenz
DumpChan (it's there in 1.2 as well) would be great, if it were a manager command where you can choose the channel to dump and not a diaplan function that outputs the current channel config to the CLI. l. In data Wed, 18 Apr 2007 02:30:09 +0200, Philipp von Klitzing <[EMAIL PROTECTED

Re: [asterisk-users] Querying channel variables via the Manager API

2007-04-18 Thread Tim Panton
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 th