On Mon, Nov 10, 2008 at 7:41 PM, David Budny <[EMAIL PROTECTED]>wrote:

>  What is the AMI command to see how many PRI channels are being used /
> available?
>
>
>
> Thanks
>
There is no direct command in AMI which will give you used channels number.
But you can easily keep track of the active zap channels, by catching the
respective events (events Link, Ringing,Hangup,Unlink etc etc ), on zap
channels, and storing them in a variable in your program.

When you receive a Connecting kind of event like Link,Ringing increase the
variable value, and when you receive Hangup or Unlink events decrease the
variable value.

Happy Hacking,
Godson Gera.
http://godson.in
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to