Hi all, I have an external application commanding asterisk by AMI and AsyncAGI. I also have a dialplan like this: ; AsyncAGI extensions exten => _8.,1,Noop(entering in AGI loop at 8 ${EXTEN}); exten => _8.,n,AGI(agi:async); exten => _8.,n,Hangup(); ; Meetme extensions exten => _1.,1,Noop(Conference ${EXTEN} ${CONTEXT}); exten => _1.,n,Set(MEETME_RECORDINGFILE=${EXTEN:}-${UNIQUEID:}) exten => _1.,n,MixMonitor(${MEETME_RECORDINGFILE}.wav) exten => _1.,n,Meetme(${EXTEN},qdx); exten => _1.,n,Hangup(); It works fine: Incoming channels are sent to meetme by an external application, which receives events by AMI and decides what meetme to use, making a redirect action to it by AMI. Every channel falling in a meetme (dynamically created) is recorded by the MixMonitor application. But there's a little problem: I don't need to record all calls but only those ones are switable of be recorded (by some kind of external rules). As it's a waste of cpu and space to record everything and then to discard almost all of them but some few ones, I tought to use AsyncAGI to recording only some calls by sending an AsyncAGI EXE MixMonitor command instead of the dial plan approach. To do that, the external application, instead of making the redial to meetme, it must make the redial to an AsyncAGI extension, then it must make the AGI EXE MixMonitor action, and finally it must make the original redirect to meetme. But it doesn't work :-( When the application reachs the third step (redial to meetme while the channel is still into the AGI loop, after having sent it the AGI EXE MixMonitor action) the MixMonitor AGI action is stopped automatically and the recording ends. Therefore, does anyone know how to manage that an AsyncAGI action to remain running in background even if the channel is redirected out of AGI? Thanks in advanced Jose -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090605/a5665f5a/attachment.htm
I'm sorry, in my last email, where I said redial, I mean redirect. Thanks Jose 2009/6/5 Jose Arias <cyr2242 at gmail.com>> Hi all, > I have an external application commanding asterisk by AMI and AsyncAGI. I > also have a dialplan like this: > > ; AsyncAGI extensions > exten => _8.,1,Noop(entering in AGI loop at 8 ${EXTEN}); > exten => _8.,n,AGI(agi:async); > exten => _8.,n,Hangup(); > > ; Meetme extensions > exten => _1.,1,Noop(Conference ${EXTEN} ${CONTEXT}); > exten => _1.,n,Set(MEETME_RECORDINGFILE=${EXTEN:}-${UNIQUEID:}) > exten => _1.,n,MixMonitor(${MEETME_RECORDINGFILE}.wav) > exten => _1.,n,Meetme(${EXTEN},qdx); > exten => _1.,n,Hangup(); > > It works fine: > > Incoming channels are sent to meetme by an external application, which > receives events by AMI and decides what meetme to use, making a redirect > action to it by AMI. Every channel falling in a meetme (dynamically > created) is recorded by the MixMonitor application. > > But there's a little problem: > > I don't need to record all calls but only those ones are switable of be > recorded (by some kind of external rules). As it's a waste of cpu and space > to record everything and then to discard almost all of them but some few > ones, I tought to use AsyncAGI to recording only some calls by sending an > AsyncAGI EXE MixMonitor command instead of the dial plan approach. > > To do that, the external application, instead of making the redial to > meetme, it must make the redial to an AsyncAGI extension, then it must make > the AGI EXE MixMonitor action, and finally it must make the original > redirect to meetme. > > But it doesn't work :-( > > When the application reachs the third step (redial to meetme while the > channel is still into the AGI loop, after having sent it the AGI EXE > MixMonitor action) the MixMonitor AGI action is stopped automatically and > the recording ends. > > Therefore, does anyone know how to manage that an AsyncAGI action to remain > running in background even if the channel is redirected out of AGI? > > Thanks in advanced > Jose > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090605/f2bc5421/attachment.htm
Hi, Asterisk 1.4.18 AsyncAGI patch from //http://moythreads.com/testasync2.diff <http://moythreads.com/testasync2.diff>// Regards Jose -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090607/9907c486/attachment.htm
Moises Silva
2009-Jun-06 23:21 UTC
[asterisk-users] How run AsyncAGI commands in background
then it should work, create a *simple* extensions.conf and pastebin it along with instructions so I can try to reproduce. On Sat, Jun 6, 2009 at 5:02 PM, Jose Arias<cyr2242 at gmail.com> wrote:> Hi, > Asterisk 1.4.18 > AsyncAGI patch from http://moythreads.com/testasync2.diff > Regards > Jose > > > _______________________________________________ > -- 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 >-- Moises Silva Software Developer Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada t. 1 905 474 1990 x 128 | e. moy at sangoma.com
Philipp Kempgen
2009-Jun-07 00:18 UTC
[asterisk-users] How run AsyncAGI commands in background
Jose Arias schrieb:> Hi, > Asterisk 1.4.18 > AsyncAGI patch from //http://moythreads.com/testasync2.diff > <http://moythreads.com/testasync2.diff>// > RegardsSo what? Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de --
Moises Silva
2009-Jun-07 01:40 UTC
[asterisk-users] How run AsyncAGI commands in background
On Sat, Jun 6, 2009 at 7:18 PM, Philipp Kempgen<philipp.kempgen at amooma.de> wrote:> Jose Arias schrieb: >> Hi, >> Asterisk 1.4.18 >> AsyncAGI patch from //http://moythreads.com/testasync2.diff >> <http://moythreads.com/testasync2.diff>// >> Regards > > So what? >What do you mean with "so what?", if you have not been involved in the conversation you would not understand. http://lists.digium.com/pipermail/asterisk-users/2009-June/232995.html -- Moises Silva Software Developer Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada t. 1 905 474 1990 x 128 | e. moy at sangoma.com
Possibly Parallel Threads
- The Redirect hangups the call while playing a file
- async agi question
- Scalability and stability matters
- AsyncAGI - How to jump in dial plan when no action initiated on channel or AMI user is disconnected
- AsyncAGI - How to jump in dial plan when no action initiated on channel or AMI user is disconnected