<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Why not do System(blah) instead of
AGI(blah) unless there is some AGI specific item you need. To quote Steve
Edwards, &#8220;Do your AGI in C so it will run 100 times faster&#8221; and don&#8217;t
worry about when it comes back.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Randall Degges<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, May 07, 2010 12:17
PM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] Execute
AGI, Then Continue</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=apple-style-span><font size=2 color="#444444"
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:#444444'>Hi
all,<o:p></o:p></span></font></span></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>I'm running Asterisk
1.6.2.7 using the following pseudo-dialplan (not actual dialplan, because of
complexity):<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>[something]<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>exten =&gt;
s,1,Answer()<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>exten =&gt;
s,n,AGI(blah,arg1,arg2)<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>exten =&gt;
s,n,Playback(blah)<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>exten =&gt;
s,n,DoMoreStuff()<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>exten =&gt; s,n,Hangup()<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>What I'd like to do,
is have Asterisk launch my AGI script and continue executing dialplan without
waiting for the AGI to finish executing. I'm aware that I can do this manually
in my AGI by forking, but I'd like to avoid doing it that way if possible.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>I remember reading
something a long time ago saying that there was a way to do this, but I can't
seem to find that documentation again. Am I crazy, or is this possible to do
without modifying my code?<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'>Thanks for all help.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#444444" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#444444'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 color="#888888" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#888888'>-Randall<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>