Is there a way to trigger an action when a certain number of zap channels are in use, or is there a variable that stores max used channels that can be read? I use PRI for inbound calls, but outbound goes out via SIP, so the simple solution does not work. I need to know when the potential exists for inbound calls via PRI/Wildcard to be blocked because there are no more channels. Obviously asterisk would never know, since the call is blocked at the Telco, or is there still d-chan activity? Anyone know of a way to do this? Thx.
You can use setgroup and getgroupcount (deprciated for the function) and trigger an acton using the system Application> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Damon Estep > Sent: Monday, September 12, 2005 8:04 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] monitor peak channel use > > Is there a way to trigger an action when a certain number of > zap channels are in use, or is there a variable that stores > max used channels that can be read? > > I use PRI for inbound calls, but outbound goes out via SIP, > so the simple solution does not work. > > I need to know when the potential exists for inbound calls > via PRI/Wildcard to be blocked because there are no more channels. > > Obviously asterisk would never know, since the call is > blocked at the Telco, or is there still d-chan activity? > > Anyone know of a way to do this? > > Thx. > > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
I use Nagios to monitor everything on my network, including * channel usage. Google for the nagios check_asterisk plugin as a starting point. It's a simple perl script that could be run without nagios if desired (eg, from a cron job). It can connect to a server via the management interface, check channel usage and perform an action based on usage figures. We also have another script that does a similar thing, but connects and stays connected. It polls the server(s) every X seconds, and writes the usage into a MySQL database, so we have a live list of channel usage across all our servers. It also writes RRDs... =========================================Rod Bacon Empowered Communications Ground Floor, 102 York St. South Melbourne Victoria, Australia. 3205 Phone: +613 99401600 Fax: +613 99401650 FWD: 512237 ICQ: 5662270 ========================================= Damon Estep wrote:> Is there a way to trigger an action when a certain number of zap > channels are in use, or is there a variable that stores max used > channels that can be read? > > I use PRI for inbound calls, but outbound goes out via SIP, so the > simple solution does not work. > > I need to know when the potential exists for inbound calls via > PRI/Wildcard to be blocked because there are no more channels. > > Obviously asterisk would never know, since the call is blocked at the > Telco, or is there still d-chan activity? > > Anyone know of a way to do this? > > Thx. > > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Any fire it off on each incoming call? Is that the idea?> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Alexander Lopez > Sent: Monday, September 12, 2005 6:14 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] monitor peak channel use > > You can use setgroup and getgroupcount (deprciated for the function)and> trigger an acton using the system Application > > > -----Original Message----- > > From: asterisk-users-bounces@lists.digium.com > > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > > Damon Estep > > Sent: Monday, September 12, 2005 8:04 PM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: [Asterisk-Users] monitor peak channel use > > > > Is there a way to trigger an action when a certain number of > > zap channels are in use, or is there a variable that stores > > max used channels that can be read? > > > > I use PRI for inbound calls, but outbound goes out via SIP, > > so the simple solution does not work. > > > > I need to know when the potential exists for inbound calls > > via PRI/Wildcard to be blocked because there are no more channels. > > > > Obviously asterisk would never know, since the call is > > blocked at the Telco, or is there still d-chan activity? > > > > Anyone know of a way to do this? > > > > Thx. > > > > > > > > _______________________________________________ > > --Bandwidth and Colocation sponsored by Easynews.com -- > > > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users