exten => request,n(StoreNum),MYSQL(Query r ${connid} INSERT INTO callers set uniqueid=’${UNIQUEID}’, callback=1,callbacknum=’${CALLBACKNUM}’,queueid=‘930’,queuename=‘queuename’, attempts=‘0’, lastattempt=NOW(), namefile=‘TEST’)
I can see in the logs that the call in the GoToIf() is going to the correct place and outputting the correct mysql call but nothing ends up in the database. There is nothing useful in the mysql logs. All other mysql calls are working and if I don’t call StoreNum directly the INSERT works fine. Has anyone seen this behavior before?
It’s an inherited system and I was just using what the dial plan already had. I can echo back the sql statement and it looks ok and all the vars are there. I can run the the echoed call back on the mysql cli and the insert works. Very curious why the StoreNum function works but not when called directly. Wondering if I am missing something as I put in a
exten => request,n,NoOp(“MADE IT TO INSERT”)
directly before the mysql call and can see that in the logs. Strange also that isn’t throwing any errors.