Nick Adams
2006-Oct-26 04:21 UTC
[asterisk-users] "Cheapest" way to determine channels in a group from outside asterisk?
I need to determine the number of active calls in a group from outside of Asterisk. Currently I poll the manager API and parse the channel status list but this is becoming too expensive on CPU. What are my options? What is considered "standard practice" ? Update a DB field? Poll the manager api? Use an asterisk -rv 'some command' call?
Lenz
2006-Oct-26 05:46 UTC
[asterisk-users] "Cheapest" way to determine channels in a group from outside asterisk?
why not using a "zap show" command and parse the results externally? l. On Thu, 26 Oct 2006 13:12:46 +0200, Nick Adams <gmane@narkov.com> wrote:> I need to determine the number of active calls in a group from outside > of Asterisk. Currently I poll the manager API and parse the channel > status list but this is becoming too expensive on CPU. > > What are my options? What is considered "standard practice" ? Update a > DB field? Poll the manager api? Use an asterisk -rv 'some command' call? >-- Loway Research - Home of QueueMetrics http://queuemetrics.loway.it
Tim Panton
2006-Oct-31 13:11 UTC
[asterisk-users] "Cheapest" way to determine channels in a group from outside asterisk?
On 26 Oct 2006, at 12:12, Nick Adams wrote:> I need to determine the number of active calls in a group from > outside of Asterisk. Currently I poll the manager API and parse the > channel status list but this is becoming too expensive on CPU. > > What are my options? What is considered "standard practice" ? > Update a DB field? Poll the manager api? Use an asterisk -rv 'some > command' call?That depends on your configuration. If you already use SNMP in your organisation, you might want to use that. If you are/have a java coder, there is some support for the asterisk MIB in the free-ware from snmp.westhawk.co.uk (Disclaimer - I wrote large chunks of it so I'm biased :-) ) Tim Panton www.mexuar.com