Module: kamailio
Branch: master
Commit: 7f463b313c6dee9d1b90a3aba631855035203e94
URL: 
https://github.com/kamailio/kamailio/commit/7f463b313c6dee9d1b90a3aba631855035203e94

Author: AntonyA <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/7f463b313c6dee9d1b90a3aba631855035203e94.diff
Patch: 
https://github.com/kamailio/kamailio/commit/7f463b313c6dee9d1b90a3aba631855035203e94.patch


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to