Noel R. Morais
2007-Nov-20 20:23 UTC
[asterisk-users] How to receive manager events from commands made by an AGI script?
Hi all, I'm new on this list, my name is Noel. :D I developed a system using AGI and now I'm trying to develop a system that listen events fired by Manager API. I have realized that I don't receive events from commands made by an AGI script like "play a file" or "record a file". Is there a way to receive such events? Sorry about the poor English. Thanks in advance. Noel
Moises Silva
2007-Nov-20 21:49 UTC
[asterisk-users] How to receive manager events from commands made by an AGI script?
That's because no event is being generated. I can do a quick patch for you and post it in mantis in order to accomplish that. But I am interested in know why you want to receive those events. I am in the middle of creating a new AGI application. As you probably know, you can launch AGI like this: AGI(agi://host ...) to execute AGI through a TCP socket instead of forking a new prcess in the local machine as AGI(script.php) does. What I am doing is a new way of executing AGI, where you will specify AGI(agi:async), which means, AGI commands will arrive asynchronously via the manager interface or the command line. Something like: Action: AGI Command: EXEC Playback Hello World Channel: SIP/23 (this channel must be in AGI(agi:async)) Or CLI> AGI execute SIP/23 EXEC Playback Hello World This is sort of a plus, my initial intention is being able to execute AGI from the manager interface to control everything from the manager. Ahhh I just hijacked your post to write mi thoughts :( sorry about that. Let me know if you are interested in the patch to send events for each agi command executed. Warm Regards, - Moy On Nov 20, 2007 2:23 PM, Noel R. Morais <noelrocha at gmail.com> wrote:> Hi all, > > I'm new on this list, my name is Noel. :D > > I developed a system using AGI and now I'm trying to develop a system > that listen events fired by Manager API. I have realized that I don't > receive events from commands made by an AGI script like "play a file" > or "record a file". > > Is there a way to receive such events? > > Sorry about the poor English. > > Thanks in advance. > > Noel > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- "Within C++, there is a much smaller and cleaner language struggling to get out."