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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100630/58727fae/attachment.htm
Add void exit (1); to the end of your php script (where you have return 1).
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100630/4a189c7d/attachment.htm
On Wednesday 30 June 2010 13:39:57 Rodrigo Lang wrote:> 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?If you want to set a value, use the SET VARIABLE agi command to do so. The AGISTATUS variable tells you nothing more than whether your script ran, failed to run (not executable), could not be found (typo!), or exited because the calling channel hung up. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org