<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,<br>
    </p>
    <div class="moz-cite-prefix">On 08.09.20 10:23, Karsten Horsmann
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFArqsbQg46MgDwCFGCdAA6PJnRx_ZZkoF7mNN-PAS-p8QiZCw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello Daniel and Henning,
        <div><br>
        </div>
        <div>I am fine with the rpc reload command. </div>
        <div>I try to understand how the mechanism works. </div>
        <div><br>
        </div>
        <div>That python 2/3 rpc reloading also works (since
          which version?) is very nice.</div>
      </div>
    </blockquote>
    <p>Since the version that lists the rpc command in the readme of the
      module.</p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAFArqsbQg46MgDwCFGCdAA6PJnRx_ZZkoF7mNN-PAS-p8QiZCw@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I assume to find a hint for "reload your scripts with the
          rpc reload command for your kemi-scripting language,
          description are in the module docu" <br>
        </div>
        <div>or something like that in the KEMI documentation. <br>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>You are more than welcome to contribute such addition to the docs
      -- make a pull request for the file where you went to find such
      hint and you didn't find it. The developer does necessary have the
      same work flow matching users expectation, but such cases help us
      improve for the future.<br>
    </p>
    <blockquote type="cite"
cite="mid:CAFArqsbQg46MgDwCFGCdAA6PJnRx_ZZkoF7mNN-PAS-p8QiZCw@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Thanks for the quick response.</div>
        <div><br>
        </div>
        <div>Cheers</div>
        <div>Karsten</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Am Di., 8. Sept. 2020 um
          09:27 Uhr schrieb Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@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>
            <p>Hello,</p>
            <p>Henning pointed in the other response that an RPC command
              has to be executed for reload, giving the link to the one
              for app_lua module.</p>
            <p>I am jumping in here to say that Python2/3 module have
              now reload capabilities as well, what I presented in 2018
              is no longer valid for those modules. If you see the
              app_puthon.reload in the list of exported rpc commands,
              then that version has reload support.</p>
            <p>Regarding the possibility of "drop in a new file and
              that's it", I explicitly didn't want this mode of
              operations for a few reasons:</p>
            <p>  * requires to check the last update timestamp for each
              sip packet routed with the script<br>
                * I typically do intermediary saves when updating the
              files, and this can lead to reloading a version before
              everything is finished. Of course, one can edit in other
              place and the push it to config folder, but somehow I
              didn't like the approach.</p>
            <p>If someone wants something like this, it has to do it
              with a modparam option.</p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div>On 08.09.20 09:14, Karsten Horsmann wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hello List,
                <div><br>
                </div>
                <div>i read Daniels Presentation <a
href="https://www.kamailio.org/events/2018-KamailioWorld/Day0/W07-Daniel-Constantin.Mierla-KEMI-Scripting.pdf"
                    target="_blank" moz-do-not-send="true">https://www.kamailio.org/events/2018-KamailioWorld/Day0/W07-Daniel-Constantin.Mierla-KEMI-Scripting.pdf</a>
                  and there is an hint about python(2/3) - that kemi
                  script reloading is not supported with python kemi
                  scripts.</div>
                <div><br>
                </div>
                <div>Is that correct for the actual versions (5.3.x and
                  5.4.x)?</div>
                <div>And if i use for example lua as kemi script
                  language, how i restart that script only?<br>
                </div>
                <div>Drop in a new file and thats it (like FreeSWITCH
                  did that)?</div>
                <div><br>
                </div>
                <div>Thanks in advance</div>
                <div><br>
                </div>
                <div>Cheers</div>
                <div>Karsten</div>
                <div><br>
                </div>
                <div>-- 
                  <div dir="ltr">*Karsten Horsmann*<br>
                  </div>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">Mit freundlichen Grüßen<br>
        *Karsten Horsmann*<br>
      </div>
    </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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>