I was trying to leave the AMI out of this because I am unsure if I can monitor it in real time without building an external listener which Flash Operator Panel does for me right now.<div><br></div><div>When I went down this road, I thought it would be a piece of cake to just fire an AGI, well it is until you get queues involved.</div>
<div><br></div><div>--Todd<br><br><div class="gmail_quote">On Tue, Apr 10, 2012 at 3:34 PM, Carlos Chavez <span dir="ltr"><<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, 2012-04-10 at 15:15 -0500, Todd Routhier wrote:<br>
> What I am trying to accomplish is to run an AGI script each time an<br>
> agent's line starts ringing. I currently have the AGI firing when the<br>
> agent answers the call using the Queue command, something like<br>
> queue(MyQueue,,,,,MyAgi.php). Works great but I need the AGI to run<br>
> when the agent's phone starts ringing.<br>
><br>
><br>
> Strangely, I can't find anything real useful on this after searching<br>
> Google, this list, various Asterisk forums etc.<br>
><br>
><br>
> Is this supported? If not, is there some other maybe not so supported<br>
> way to accomplish this?<br>
><br>
><br>
> I get how I can just fire an AGI from the dial plan but once I leave<br>
> control to the queue, I can't really do that, I don't think.<br>
><br>
><br>
</div></div> The only way I really see to do that is to monitor events via AMI so<br>
you can trigger the AGI when the phone starts to ring.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Telecomunicaciones Abiertas de México S.A. de C.V.<br>
Carlos Chávez Prats<br>
Director de Tecnología<br>
<a href="tel:%2B52-55-91169161%20ext%202001" value="+525591169161">+52-55-91169161 ext 2001</a><br>
</font></span><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><br></div>