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. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users