<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;">Maybe it’s due to errors in config (as syslog tells me), but according to doc, there is no errors
<div><br /></div>
<div>app_lua_run_ex(): error from Lua: /etc/kamailio/lua/kamailio.lua:394: attempt to call field 'has_body' (a nil value)</div>
<div><br /></div>
<div>but</div>
<div>...</div>
<div>if (KSR.textops.has_body()) then<br /></div>
<div>…</div>
<div><br /></div>
<div>and module textops.so is loaded.</div>
</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
On Mar 13, 2018, 4:05 PM +0200, Igor Olhovskiy <igorolhovskiy@gmail.com>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Kamailio version is kamailio 5.1.0-dev6</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
On Mar 13, 2018, 4:03 PM +0200, Igor Olhovskiy <igorolhovskiy@gmail.com>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">
<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>
</blockquote>
</div>
</blockquote>
</div>
</body>
</html>