[asterisk-users] show pri usage
Steve Edwards
asterisk.org at sedwards.com
Thu Mar 26 12:07:38 CDT 2009
On Thu, 26 Mar 2009, Vieri wrote:
> I would like to know how to see which channels are used in my PRI E1
> link from Asterisk to another locally-connected commercial PBX.
>
> My goal is to simply record the PRI channel usage through time (like a
> 10 minute cron script that polls PRI link status/usage).
>
> Maybe I could simply do something like: asterisk -rx "show channels" |
> grep -c -i zap to get the number of zap/dahdi channels in use.
I do it with a shell script run every minute on each server and then I
store the count and the HOSTNAME in the database. (Now that my AMI skills
are a bit better, I'd probably do it in PHP and AMI...)
Then I have a php script that creates a web page showing the maximum
channels in use with a row for each host and a column for each hour of the
day.
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list