<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<div>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>></span></font>On Mon, Aug 9, 2010 at
4:14 PM, Danny Nicholas <<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>>
wrote:<o:p></o:p></p>
<div link=blue vlink=purple>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:navy;font-weight:bold'>></span></font></b><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Felipe Figueiredo<br>
<font color=navy><span style='color:navy'>></span></font><b><span
style='font-weight:bold'>Subject:</span></b> [asterisk-users] check channels</span></font><o:p></o:p></p>
</div>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'> <font
color=navy><span style='color:navy'>></span></font>Hi guys, <br>
<font color=navy><span style='color:navy'>></span></font>is there a way to see
how many channels of an specific tecnology are being used?<br>
<font color=navy><span style='color:navy'>></span></font>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?<br>
<br>
<font color=navy><span style='color:navy'>></span></font>Thanks!<o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>/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.</span></font> <o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>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.</span></font><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>>>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Felipe Figueiredo<br>
<br>
</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>>>Thanks Danny, <br>
>>but the system won't know exactly how many channels are being used
right? if I use the asterisk -rx cmd, this is the result:<br>
>>Zap/63-1
(None)
Up Bridged Call(SIP/xxx)<br>
<br>
>>It won't show how many zap channels are busy ..... I need to count the
busy channels, and with the count results, dial to an exten and tell how many
channels are busy ;<br>
<br>
<font color=navy><span style='color:navy'>/usr/sbin/asterisk –rx “core show
channels”|grep Zap|wc<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Will give
you just the number of channels in use of type Zap. It isn’t too hard to
evaluate and act from that. Just don’t have my shell scripting hat on today.<o:p></o:p></span></font></p>
</div>
</body>
</html>