Hi Danny. I solve the problem. I put "exit (return);" where return is equal
to ${AGISTATUS} text. Example:

exit(SUCCESS);
exit(FAILURE);
exit(HANGUP);

 This application sets the following channel variable upon completion:
     AGISTATUS      The status of the attempt to the run the AGI script
                    text string, one of SUCCESS | FAILURE | NOTFOUND |
HANGUP

:D


Thanks,
Rodrigo Lang.



2010/6/30 Danny Nicholas <da...@debsinc.com>

>  Can you post the script?
>
>
>  ------------------------------
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *Rodrigo Lang
> *Sent:* Wednesday, June 30, 2010 2:09 PM
>
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] Return agi script.
>
>
>
> It did not work. Returned the broken pipe error. Obs> I using phpagi.
>
>
> Thanks,
> Rodrigo Lang.
>
>  2010/6/30 Danny Nicholas <da...@debsinc.com>
>
> Add void exit (1); to the end of your php script (where you have return
> 1).
>
>
>  ------------------------------
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *Rodrigo Lang
> *Sent:* Wednesday, June 30, 2010 1:40 PM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] Return agi script.
>
>
>
> Good afternoon list.
>
> I'm trying to use ${AGISTATUS} after the execution of my script in PHP Agi.
> But after running the script, it just returns me 0 (true). Thus:
>
>     -- <SIP/213-00000019>AGI Script check.agi completed, returning 0
>
>
> I tried putting the lines "return false;" or "return 1;" but did not change
> anything.
> Does anyone have a clue?
>
>
> Thanks,
> Rodrigo Lang.
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to