Hi Danny. I solve the problem. <span id="result_box" class="short_text"><span style="background-color: rgb(230, 236, 249); color: rgb(0, 0, 0);" title="">I put "exit
(return);" where return is equal to ${AGISTATUS} text. </span><span title="">Example:</span></span><br><br>exit(SUCCESS);<br>exit(FAILURE);<br>exit(HANGUP);<br><br> This application sets the following channel variable upon completion:<br>
AGISTATUS The status of the attempt to the run the AGI script<br> text string, one of SUCCESS | FAILURE | NOTFOUND | HANGUP<br><br>:D<br><br><br>Thanks,<br>Rodrigo Lang.<br><br><br><br><div class="gmail_quote">
2010/6/30 Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Can you post the script?</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; 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>Rodrigo Lang<br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, June 30, 2010
2:09 PM<div class="im"><br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk Users Mailing List -
Non-Commercial Discussion<br>
</div><b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users] Return
agi script.</span></font></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal"><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">It did not work. </span><span title="">Returned the
broken pipe error. Obs> I using phpagi.</span></font></span><br>
<br>
<br>
<span>Thanks,</span><br>
<span>Rodrigo Lang.</span><br>
<br>
</p>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2010/6/30 Danny Nicholas <<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>></span></font></p>
<div link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Add void exit (1); to the end of your php script (where you have
return 1). </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; 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>Rodrigo Lang<br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, June 30, 2010
1:40 PM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk Users Mailing List - Non-Commercial
Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> [asterisk-users] Return
agi script.</span></font></p>
</div>
<div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Good afternoon
list.<br>
<br>
<span title="">I'm trying to use ${AGISTATUS} after the execution of my script
in PHP Agi. </span><span title="">But after running the script, it just returns
me 0 (true). Thus:</span><br>
<br>
-- <SIP/213-00000019>AGI Script check.agi completed,
returning 0<br>
<br>
<br>
<span title="">I tried putting the lines "return false;" or
"return 1;" but did not change anything.<br>
<span title="">Does anyone have a clue?</span><br>
</span><br>
<br>
Thanks,<br>
Rodrigo Lang.</span></font></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><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></span></font></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div></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>