[SR-Users] lua_dostring sr vs KSR

Julien Chavanton jchavanton at gmail.com
Thu Jul 30 18:50:34 CEST 2020


lua_dostring("sr.pv.seti(\"$$var(var1)\", $avp(var1) < $avp(var3) and 1 or
0)");

results in error :
kamailio app lual_dostring(): error from Lua:  attempt to index global 'sr'
(a nil value)

replacing sr with KSR is working :

lua_dostring("KSR.pv.seti(\"$$var(var1)\", $avp(var1) < $avp(var3) and 1 or
0)");

Shall we update the docs for
https://kamailio.org/docs/modules/devel/modules/app_lua.html#app_lua.f.lua_dostring
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200730/dcc95dd4/attachment.htm>


More information about the sr-users mailing list