Page 1 of 1

Manager API quick question

PostPosted: Fri Apr 17, 2009 3:16 pm
by mxtreme311
I know this should probably be directed in a Asterisk forum, but I also know there are some asterisk gurus here... what command would I issue to the AMI to get a count of current active Zap channels? "zap show status" only returns how many total channels I have, not how many are in use. We are trying to build a HOWTO for adding cacti server monitoring...

PostPosted: Fri Apr 17, 2009 4:21 pm
by williamconley
show channels (and sort them through a perl script)

or use the "CHANNEL" function to collect the information you want

or zap show channel X one at a time to find all the information you want on each channel (and again filter them through a script)

or build an IF statement that checks the "CHANNEL" function response and shows information based on the response.

PostPosted: Fri Apr 17, 2009 7:12 pm
by mflorell
Asterisk 1.2.X:
show channels concise

Asteirsk 1.4.X
core show channels concise

If you want to see more information on how we do it in the ViciDial code take a look at the AST_update.pl script.