Hi guys, is there a way to see how many channels of an specific tecnology are being used? Like, i have a zap card, e1 (30 channels), and there are 10 channels being used at this moment. When the E1 reaches 15 busy channels I need to receive a call or something like this, telling me that 15 of 30 channels are busy. How can I do this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100809/fe743097/attachment.htm
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Felipe Figueiredo Subject: [asterisk-users] check channels>Hi guys, >is there a way to see how many channels of an specific tecnology are beingused?>Like, i have a zap card, e1 (30 channels), and there are 10 channels beingused at this moment. When the E1 reaches 15 busy channels I need to receive a call or something like this, telling me that 15 of 30 channels are busy. How can I do this?>Thanks!/usr/sbin/asterisk -rx "core show channels"|grep Zap will show you how many Zap channels are open at any moment. You can grep for SIP, Zap or DAHDI (or IAX) depending on your release/technology. To do this as you specified, you would record a message (say busy15.gsm) and set up a call file to call yourself and play the busy15 message. I used to have my Asterisk call me whenever it restarted this way. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100809/7bffa0c3/attachment.htm
On Mon, 9 Aug 2010, Felipe Figueiredo wrote:> is there a way to see how many channels of an specific tecnology are > being used?See? From where? Within the dialplan or from an external process?> Like, i have a zap card, e1 (30 channels), and there are 10 channels > being used at this moment. When the E1 reaches 15 busy channels I need > to receive a call or something like this, telling me that 15 of 30 > channels are busy. How can I do this?Within the dial plan you can use the GROUP() and GROUP_COUNT() functions. You could set the group to the technology and check the count as each call enters your dial plan. (Asterisk will automagically decrement the count as the calls are terminated.) If the count exceeds your threshold, you could use system() to create a call file to call you and play an appropriate message.
You need to write an external application either on AMI to keep track of channels or an external application can get channel list by using shell command "/usr/sbin/asterisk -rx 'show channels'|grep zap" and then can count the output and generate a callback file to sent alert call. Regards, Faisal Hanif /VoIP Manager /**VOPIUM A/S // n 8/9/2010 11:56 PM, Felipe Figueiredo wrote:> Hi guys, > is there a way to see how many channels of an specific tecnology are > being used? > Like, i have a zap card, e1 (30 channels), and there are 10 channels > being used at this moment. When the E1 reaches 15 busy channels I need > to receive a call or something like this, telling me that 15 of 30 > channels are busy. How can I do this? > > Thanks! > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100810/c010c81e/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: vopium-small.jpg Type: image/jpeg Size: 2502 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100810/c010c81e/attachment.jpg