You could set a dialplan variable in the AGI so that it's pretty easy to tell what happened in the AGI. About the code 0, the funny part is that you see "AGI Script completed, returning 0" even if the AGI does not exist, or is not executable. This should be a good candidate for improvement :-)
l.



On Sat, 03 Mar 2007 06:28:23 +0100, Yuan LIU <[EMAIL PROTECTED]> wrote:

I mean how do I set failure condition in AGI? My script exits with code 0 upon success, and non-zero when problems occur - the standard *nix way. But Asterisk always report "AGI Script completed, returning 0", and AGISTATUS is always SUCCESS.

Yuan Liu




--
Loway Research - Home of QueueMetrics
http://queuemetrics.com
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to