<div>Hi all,<br>I have an external application commanding asterisk by AMI and AsyncAGI. I also have a dialplan like this:</div>
<div><br>; AsyncAGI extensions</div>
<div>exten => _8.,1,Noop(entering in AGI loop at 8 ${EXTEN});<br>exten => _8.,n,AGI(agi:async);<br>exten => _8.,n,Hangup();</div>
<div> </div>
<div>; Meetme extensions</div>
<div>exten => _1.,1,Noop(Conference ${EXTEN} ${CONTEXT});<br>exten => _1.,n,Set(MEETME_RECORDINGFILE=${EXTEN:}-${UNIQUEID:})<br>exten => _1.,n,MixMonitor(${MEETME_RECORDINGFILE}.wav)<br>exten => _1.,n,Meetme(${EXTEN},qdx);<br>
exten => _1.,n,Hangup();<br><br>It works fine:</div>
<div> </div>
<div>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. </div>
<div> </div>
<div>But there's a little problem: </div>
<div> </div>
<div>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.<br>
<br>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.<br>
<br>But it doesn't work :-(<br><br>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.<br>
<br>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?<br><br>Thanks in advanced<br>Jose<br><br></div>