<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 13.03.18 15:03, Igor Olhovskiy
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:8ad62e9a-2c8e-48d7-b6db-7286351672ab@Spark">
      <title></title>
      <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>
    </blockquote>
    see the reload parameter for app_lua:<br>
    <br>
      -
<a class="moz-txt-link-freetext" href="https://kamailio.org/docs/modules/stable/modules/app_lua.html#app_lua.p.reload">https://kamailio.org/docs/modules/stable/modules/app_lua.html#app_lua.p.reload</a><br>
    <br>
    Cheers,<br>
    Daniel<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>