<p>I guess you are looking for event handler, which can be polled programatically n not via manual command entry?</p>
<p>Mitul</p>
<div class="gmail_quote">On Oct 18, 2012 8:53 PM, "Danny Nicholas" <<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The AMI Command function issues CLI commands, but carry on.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <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>On Behalf Of </b>Michelle Dupuis<br>
<b>Sent:</b> Thursday, October 18, 2012 10:20 AM<br><b>To:</b> Asterisk Users List<br><b>Subject:</b> Re: [asterisk-users] Counting calls in progress from AMI<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I need to do this from the AMI (not the CLI)...I don't *think* a comparable command exists from the AMI.</span><u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">As well, I don't want to poll the system for calls so I'm hoping to trap a call bridged,unbridged type event.</span><u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><div class="MsoNormal" align="center" style="text-align:center"><hr size="2" width="100%" align="center"></div><p class="MsoNormal" style="margin-bottom:12.0pt">
<b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Danny Nicholas [<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>]<br>
<b>Sent:</b> Thursday, October 18, 2012 10:59 AM<br><b>To:</b> Asterisk Users List<br><b>Subject:</b> Re: [asterisk-users] Counting calls in progress from AMI</span><u></u><u></u></p></div><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The simplest way to accurately do this would be to issue command “core show channels verbose”</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> <a href="mailto:[mailto:asterisk-users-bounces@lists.digium.com]" target="_blank">[mailto:asterisk-users-bounces@lists.digium.com]</a> <b>On Behalf Of </b>Michelle Dupuis<br>
<b>Sent:</b> Thursday, October 18, 2012 9:58 AM<br><b>To:</b> Asterisk Users List<br><b>Subject:</b> [asterisk-users] Counting calls in progress from AMI</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p>
<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I want to track the number of calls up at any given time, through the AMI. I found the Link and Unlink commands as the most likely candidates - is that the right way?</span><u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Also, a comment on the wiki suggests that Link may be called several times for a single bridge if transcoding is required. That blows up accuracy of my count of course...</span><u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Ideas?</span><u></u><u></u></p></div></div></div></div>
</div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div>