[asterisk-users] Counting calls in progress from AMI

Richard Mudgett rmudgett at digium.com
Thu Oct 18 13:00:40 CDT 2012


> Considering this your real question " I want to track the number of
> calls up at any given time, through the AMI " ....
> 
> Comparable Command Exists !!
> 
> You can simply run CLI commands through AMI and receive the response.
> Command used for this is itself "Command" in AMI. If you still want
> to do it by counting the event stream then POE is the best solution
> if you know PERL, but still why wasting resources in counting
> events.If you have other plans like billing then it is
> understandable otherwise go easy way and add a cron job or have a UI
> in php or whatever.
> 
> Manager Command:
> Command          command,all      Execute Asterisk CLI Command

You should only use the AMI Command action if there is no other AMI action
available to do the job.  For instance, the AMI CoreShowChannels action
is better than using the CLI "core show channels" command through AMI.

manager show command CoreShowChannels

Richard



More information about the asterisk-users mailing list