Module: kamailio
Branch: master
Commit: 7f463b313c6dee9d1b90a3aba631855035203e94
URL:
https://github.com/kamailio/kamailio/commit/7f463b313c6dee9d1b90a3aba631855…
Author: AntonyA <ascanio.alba7(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-02-26T20:25:55+01:00
app_python3: implement script reloading
Copy the method used in app_lua: the version of the script is incremented by RPC.
In python_exec.c:apy_exec() check for a newer version and reload the script.
Set a lock so the script reload only occurs at depth 0 (in the unlikely case
that apy_exec() is called recursively).
This is not thread-safe as we are using a process-wide lock: don't call back
into apy_exec() from a Python extension that uses threads.
---
Modified: src/modules/app_python3/app_python_mod.c
Modified: src/modules/app_python3/app_python_mod.h
Modified: src/modules/app_python3/apy_kemi.c
Modified: src/modules/app_python3/doc/app_python3_admin.xml
Modified: src/modules/app_python3/python_exec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7f463b313c6dee9d1b90a3aba631855…
Patch:
https://github.com/kamailio/kamailio/commit/7f463b313c6dee9d1b90a3aba631855…