YES YES...that&#39;s what i want ;)<div><br></div><div>so simple but i was so tired :(</div><div><br></div><div>I will try it and let you know ;)</div><div><br></div><div>THANKS my friend<br><br><div class="gmail_quote">2010/9/2 Danny Nicholas <span dir="ltr">&lt;<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="blue">

<div><div class="im">

<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">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight:bold">On Behalf Of </span></b>Danny Dias<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [asterisk-users] How
to finish an AGI</span></font></p>

</div>

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

</div><p class="MsoNormal"><font size="3" color="navy" face="Times New Roman"><span style="font-size:12.0pt;color:navy">&gt;</span></font>No nicolas...that&#39;s not
what i want...by the way sound very complicated :(</p>

<div>

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

</div>

<div><div class="im">

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="navy" face="Times New Roman"><span style="font-size:12.0pt;color:navy">&gt;</span></font>What
i need is to FINISH THE AGI when the MACRO reachs the Hangup...dont worry for
the purpose of the macro, if the macro reachs the hangup the Agi should stop
working, but it continues with his job... :(<font color="navy"><span style="color:navy"></span></font></p>

</div><p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Does the
AGI have a SIG(HUP) = IGNORE (pardon the syntax since I don’t know if it’s
PERL/PHP/whatever)?  If so, the AGI is “indestructible” (will finish or have to
be “killed”)  You could have the macro set a variable at hangup and kill the
AGI when it returned</span></font></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">AGI runs</span></font></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Macro runs</span></font></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Macro gets
hangup</span></font></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Set xx=yes</span></font></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Returns to
AGI</span></font></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">If (xx=yes
exit)</span></font></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

</div>

</div>

</div>


<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Salu2<br><span></span><br>

</div>