Todd Routhier
2012-Apr-10 20:15 UTC
[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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120410/890d1f20/attachment.htm>
Danny Nicholas
2012-Apr-10 20:21 UTC
[asterisk-users] Run AGI while agent ringing instead of only when connected
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-bounces at lists.digium.com [mailto:asterisk-users-bounces at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120410/87abf3de/attachment.htm>
Carlos Chavez
2012-Apr-10 20:34 UTC
[asterisk-users] Run AGI while agent ringing instead of only when connected
On Tue, 2012-04-10 at 15:15 -0500, Todd Routhier wrote:> 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. > >The only way I really see to do that is to monitor events via AMI so you can trigger the AGI when the phone starts to ring. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120410/9308c2a2/attachment.pgp>
Danny Nicholas
2012-Apr-10 20:42 UTC
[asterisk-users] Run AGI while agent ringing instead of only when connected
You have read this thread? http://www.voip-info.org/wiki/view/Asterisk+cmd+Queue From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120410/ad2f0c11/attachment.htm>