[asterisk-users] Dialplan MySQL inserted ID

Jonas Kellens jonas.kellens at telenet.be
Tue Aug 20 08:53:22 CDT 2013


Hello,

how can I obtain the "inserted ID" after having inserted a row with 
MySQL in the dialplan ?

exten => s,n,MYSQL(Query resultid ${connid} INSERT INTO myTable SET 
C1="${ARG1}", C2="${ARG2}", 
timestamp="${STRFTIME(${EPOCH},,%Y-%m-%d_%H:%M:%S)}")

I need to know the ID of the newly inserted row.



Kind regards,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130820/723b052e/attachment.htm>


More information about the asterisk-users mailing list