<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 16.09.19 21:08, Yuriy Gorlichenko
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABSP_Vd+wUuzmqRwn7WYeohzzhz9+Wq8m8-hbZ7yJusM26BKUA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">I found issue: <br>
        Called  KSR.log earlier than it was initiated. <br>
        Moved part of code previously used in cfgengine "lua" to
        lua_run().</div>
    </blockquote>
    <p><br>
    </p>
    <p>Just to clarify: the issue was exposed because you moved some
      code that was used previously with cfgengine lua to a lua_run()
      usage? The KSR should be initialized quite early, that's why I am
      trying to figure out if there are cases when Lua code can be
      executed (due to some modparams or event routes) and the
      environment is not set, in order to find some solution for such
      cases. So if you can provide more details about how was used and
      not working, it may get fixes if it is a viable use case.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CABSP_Vd+wUuzmqRwn7WYeohzzhz9+Wq8m8-hbZ7yJusM26BKUA@mail.gmail.com"><br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">пн, 16 сент. 2019 г. в 15:25,
          Yuriy Gorlichenko <<a href="mailto:ovoshlook@gmail.com"
            moz-do-not-send="true">ovoshlook@gmail.com</a>>:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="auto">Sorry Just a mistake. Offcourse it is path to
            kamailio.cfg file which contains path to main.lua as
            modparam. Sorry for confusing</div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Mon, 16 Sep 2019, 10:45
              Daniel-Constantin Mierla, <<a
                href="mailto:miconda@gmail.com" target="_blank"
                moz-do-not-send="true">miconda@gmail.com</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div>Hello,</div>
                <div><br>
                </div>
                <div>is it "kamailio -f /etc/kamailio/extended/main.lua"
                  or just a typing mistake, because the config path
                  provided with -f should still be to the kamailio.cfg
                  where you set global parameters, load modules and set
                  their parameters?</div>
                <div><br>
                </div>
                <div>Cheers,</div>
                <div>Daniel<br>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Mon, Sep 16, 2019
                  at 7:23 AM Yuriy Gorlichenko <<a
                    href="mailto:ovoshlook@gmail.com" rel="noreferrer"
                    target="_blank" moz-do-not-send="true">ovoshlook@gmail.com</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div dir="ltr">Hi! Im using kamailio 5.1.8 with
                    app_lua and getting this message during startup of
                    kamailio. Looks like I forgot to add something at
                    the module setup, but cant figure out what is wrong.
                    My setup of app_lua is:<br>
                    <br>
                    modparam("app_lua", "load",
                    "/etc/kamailio/extended/main.lua")<br>
                    modparam("app_lua","reload",1)<br>
                    modparam("app_lua","register","textops")<br>
                    <br>
                    app_lua [app_lua_sr.c:1599]:
                    sr_kemi_lua_exec_func_ex(): invalid Lua environment
                    attributes or parameters<br>
                    <br>
                    starting kamailio service with kamailio -f
                    /etc/kamailio/extended/main.lua<br>
                    <br>
                    Also here is little bit confusing me that in case of
                    use "KSR" everywhere I'm getting message about
                    "sr"...<br>
                    <br>
                    Thx in advice</div>
                  _______________________________________________<br>
                  Kamailio (SER) - Users Mailing List<br>
                  <a href="mailto:sr-users@lists.kamailio.org"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                  <a
                    href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                    rel="noreferrer noreferrer" target="_blank"
                    moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                </blockquote>
              </div>
              <br clear="all">
              <br>
              -- <br>
              <div dir="ltr"
                class="gmail-m_-8232644339647112643m_43655598967148316gmail_signature">
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>Daniel-Constantin Mierla - <a
                          href="http://www.asipto.com" rel="noreferrer"
                          target="_blank" moz-do-not-send="true">http://www.asipto.com</a></div>
                      <div><a href="http://twitter.com/#!/miconda"
                          rel="noreferrer" target="_blank"
                          moz-do-not-send="true">http://twitter.com/#!/miconda</a>
                        - <a href="http://www.linkedin.com/in/miconda"
                          rel="noreferrer" target="_blank"
                          moz-do-not-send="true">http://www.linkedin.com/in/miconda</a></div>
                    </div>
                  </div>
                </div>
              </div>
              _______________________________________________<br>
              Kamailio (SER) - Users Mailing List<br>
              <a href="mailto:sr-users@lists.kamailio.org"
                rel="noreferrer" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
              <a
                href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                rel="noreferrer noreferrer" target="_blank"
                moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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, Oct 21-23, 2019, Berlin, Germany -- <a class="moz-txt-link-freetext" href="https://asipto.com/u/kat">https://asipto.com/u/kat</a></pre>
  </body>
</html>