[asterisk-users] AGI return codes

A J Stiles asterisk_list at earthshod.co.uk
Wed Mar 20 06:07:21 CDT 2013


On Wednesday 20 March 2013, Ishfaq Malik wrote:
> Hi
> 
> Does anyone know what the different return codes from AGI script
> execution mean? I'm getting a lot of
> 
> AGI Script <script-name> completed, returning 4
> 
> I'm using asterisk 1.8.7.0
> 
> Thanks in advance

You need to check the exit statements within the AGI scripts in question.  
Different exit values usually mean different things have happened.  Typically 0 
is the most favourable exit value, i.e. everything O.K., and non-zero exit 
values indicate errors.

If the authors of the scripts were nice, then they will have provided a list 
of possible exit values in the documentation, or in the script comments.

-- 
AJS

Answers come *after* questions.



More information about the asterisk-users mailing list