Thanks Danny. What I am trying to do is send a popup screen to the agent. I am doing this now using Flash Operator Panel but I am trying to get away from that. I need to know the agent the call is being sent to when calling the AGI. So, right now I am getting all that but only when the call is connected. Running the AGI first will just allow me to popup a window for all agents instead of the one that is currently ringing. This is why I need it to be fired as part of the queue, it seems only the Queue (and the AMI) know which agent is ringing.
--Todd On Tue, Apr 10, 2012 at 3:21 PM, Danny Nicholas <da...@debsinc.com> wrote: > Put your Queue command In a macro like this**** > > [agi-and-queue]**** > > Exten => s,1,Verbose(start AGI then do queue)**** > > Exten => s,n,AGI(queproc.sh)**** > > Exten => s,n,queue(myqueue)**** > > ** ** > > You will need to put nohup into the AGI so it can run whether the line > gets picked up or not.**** > > ** ** > > *From:* asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@lists.digium.com] *On Behalf Of *Todd Routhier > *Sent:* Tuesday, April 10, 2012 3:15 PM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* [asterisk-users] Run AGI while agent ringing instead of only > when connected**** > > ** ** > > What I am trying to accomplish is to run an AGI script each time an > agent's line starts ringing. I currently have the AGI firing when the agent > answers the call using the Queue command, something like > queue(MyQueue,,,,,MyAgi.php). Works great but I need the AGI to run when > the agent's phone starts ringing.**** > > ** ** > > Strangely, I can't find anything real useful on this after searching > Google, this list, various Asterisk forums etc.**** > > ** ** > > Is this supported? If not, is there some other maybe not so supported way > to accomplish this?**** > > ** ** > > I get how I can just fire an AGI from the dial plan but once I leave > control to the queue, I can't really do that, I don't think.**** > > ** ** > > Thanks in advance for any help!**** > > ** ** > > --Todd**** > > ** ** > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users