Brian Hutchinson
2008-Jan-14 11:55 UTC
[asterisk-users] AGISTATUS is SUCCESS even though my PHP script returned -1
Hi, Using Asterisk 1.4.17. I'm calling a PHP script through AGI. No matter what my script returns (0 or -1), AGISTATUS always appears to be 0 SUCCESS. I was wanting my script to be able to return a value to the dialplan and then test AGISTATUS but it looks like I'm going down the wrong path. Any suggestions? Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080114/77af1d55/attachment.htm
Matt Riddell
2008-Jan-15 00:21 UTC
[asterisk-users] AGISTATUS is SUCCESS even though my PHP script returned -1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brian Hutchinson wrote: | Hi, | | Using Asterisk 1.4.17. I'm calling a PHP script through AGI. No matter | what my script returns (0 or -1), AGISTATUS always appears to be 0 | SUCCESS. | | I was wanting my script to be able to return a value to the dialplan and | then test AGISTATUS but it looks like I'm going down the wrong path. | | Any suggestions? Why don't you just set a variable from the AGI and then test for it in the dialplan - -- Kind Regards, Matt Riddell Director _______________________________________________ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHi/ykDQNt8rg0Kp4RAh93AJ9BOV/+IjAqte/coiOTCAciRzI25wCZAYW3 BW/ubpchpy2KUQROsmPnonQ=4oUM -----END PGP SIGNATURE-----