Hi,Some more INFOkamialio.luasr.sqlops.query("cb", "select grp from address where id='1'", "result");sr.sqlops.column("result", index);sr.sqlops.nrows("result");sr.sqlops.ncols("result");kamailio.cfgmodparam("sqlops","sqlcon","cb=>mysql://XXXX:XXXX@ localhost/XXXX") On Tue, Aug 22, 2017 at 6:18 PM, santosh gupta <santosh.gupta.g@gmail.com> wrote:Hi Robert,Hope you are doing good.You have helped me in the past.I need to set LCR via app_lua, getting rates and destination from mysql.Link which i am following isThe issue is I am not able to get connect via sr commands for examplesr.sqlops.query("connection", "query", "result")What should be exactly is "connection", "query", "result"Error I am getting in syslog is
/usr/local/kamailio/etc/kamail
io/kamailio.lua:1: attempt to index field 'sqlops' (a nil value)
I am using kamailio 5.0.2A little bit of headsup will help me.Thanks a lot again.--RegardsSantosh Gupta+91 9323043570--RegardsSantosh Gupta+91 9323043570
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr- users