<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><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. </div><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">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">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">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">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">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank">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>