<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>has_totag() is exported by siputils module, not by textops.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 13.03.18 15:15, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:4af4d695-0eb9-448c-accb-f1c65eed3bb4@Spark">
<title></title>
<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
<a class="moz-txt-link-rfc2396E" href="mailto:igorolhovskiy@gmail.com"><igorolhovskiy@gmail.com></a>, 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
<a class="moz-txt-link-rfc2396E" href="mailto:igorolhovskiy@gmail.com"><igorolhovskiy@gmail.com></a>, 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>