[asterisk-users] AGI Problem
Danny Nicholas
danny at debsinc.com
Fri Sep 23 12:07:31 CDT 2011
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mehmet
Avcioglu
Sent: Friday, September 23, 2011 12:02 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] AGI Problem
Hello,
I have an AGI script that occasionally disappears without completing its
action and asterisk logs the following.
<Local/0123456 at context-f46e;1>AGI Script script.php completed, returning 4
Spawn extension (context, 0123456, 2) exited non-zero on
'Local/0123456 at context-f46e;1'
I figured this was due to channel hanging up and * sending a SIGHUP to the
script and added a catch and ignore for SIGHUP and SIGPIPE. But I still have
instances where AGI script gets lost. I am running 1.8.
Any ideas what "returning 4" really means, where should I concentrate?
Thanks
--
Mehmet
Just a WAG - 4 is the error level returned by your php script, where it
normally returns 0.
More information about the asterisk-users
mailing list