[SR-Users] how to reload kemi scripts? kamailio 5.3.x or 5.4.x

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 8 09:27:07 CEST 2020


Hello,

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.

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.

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:

  * requires to check the last update timestamp for each sip packet
routed with the script
  * 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.

If someone wants something like this, it has to do it with a modparam
option.

Cheers,
Daniel

On 08.09.20 09:14, Karsten Horsmann wrote:
> Hello List,
>
> i read Daniels
> Presentation https://www.kamailio.org/events/2018-KamailioWorld/Day0/W07-Daniel-Constantin.Mierla-KEMI-Scripting.pdf
> and there is an hint about python(2/3) - that kemi script reloading is
> not supported with python kemi scripts.
>
> Is that correct for the actual versions (5.3.x and 5.4.x)?
> And if i use for example lua as kemi script language, how i restart
> that script only?
> Drop in a new file and thats it (like FreeSWITCH did that)?
>
> Thanks in advance
>
> Cheers
> Karsten
>
> -- 
> *Karsten Horsmann*
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200908/44623598/attachment.htm>


More information about the sr-users mailing list