[asterisk-users] change AGI script return result

Anthony Messina amessina at messinet.com
Fri May 15 15:56:57 CDT 2009


On Friday 15 May 2009 03:49:05 pm Hristo Benev wrote:
> I came up to this solution, but is there a way to change the AGISTATUS
> variable to FAILURE -> We have it always SUCCESS

if the script you use exits successfully (without an error), AGISTATUS will 
always be SUCCESS even if it didn't do what you wanted.

you need to have your script exit with something other than 0 if you'd like to 
have AGISTATUS not be SUCCESS.

-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090515/63d2b8c4/attachment.pgp 


More information about the asterisk-users mailing list