[asterisk-users] AGI return codes
A J Stiles
asterisk_list at earthshod.co.uk
Wed Mar 20 07:21:53 CDT 2013
On Wednesday 20 March 2013, Ishfaq Malik wrote:
> I have an even simpler fix for this particular script. This one isn't
> really a true AGI script, all it's doing is taking the arguments
> presented to it and logging them in a db table.
>
> I'm going to try the system command instead, should have done that in
> the first place but the AGI command was just my 'goto place'...
I bet there's a problem with the data, which is causing the INSERT to fail
sometimes. Get your script to log its inputs to a file; then log the INSERT
as soon as you've constructed it, and the query status immediately after the
query has been performed. If the query fails, the script won't get far enough
to log the status.
By the way, it will almost certainly turn out to be caused by speech marks in
the data. That's about as reliable a long-distance diagnosis for a PHP / SQL
issue as saying a central heating fault is due to the diverter valve.
--
AJS
Answers come *after* questions.
More information about the asterisk-users
mailing list