<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Hi!
<div><br /></div>
<div>I’m playing with new KEMI framework and trying to reload script without reloading Kamailio.</div>
<div><br /></div>
<div>Lua code is mostly one from example.</div>
<div><br /></div>
<div>...</div>
<div>
<div>modparam("app_lua", "load", "/etc/kamailio/lua/kamailio.lua")</div>
<div>cfgengine "lua"</div>
</div>
<div>...</div>
<div><br /></div>
<div>So, I’m changing lua code and giving command</div>
<div><br /></div>
<div>kamctl rpc app_lua.reload<br /></div>
<div><br /></div>
<div>But in the answer</div>
<div><br /></div>
<div>
<div>{</div>
<div>  "jsonrpc":  "2.0",</div>
<div>  "error":  {</div>
<div>    "code": -32000,</div>
<div>    "message":  "Execution Error"</div>
<div>  },</div>
<div>  "id": 11098</div>
<div>}</div>
</div>
<div><br /></div>
<div>In syslog there is a string </div>
<div><br /></div>
<div>/usr/sbin/kamailio[10939]: ERROR: app_lua [app_lua_api.c:399]: lua_sr_reload_script(): reload is not activated<br /></div>
<div><br /></div>
<div><br /></div>
<div>What is need to be done to activate reload?</div>
<div><br /></div>
</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
Regards, Igor</div>
</body>
</html>