From d79e00892760f296c851740b33f8df3b5a6324ad Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 6 Dec 2022 10:54:57 +0100 Subject: [PATCH] app_python3s: docs for script_child_init parameter --- .../app_python3s/doc/app_python3s_admin.xml | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/modules/app_python3s/doc/app_python3s_admin.xml b/src/modules/app_python3s/doc/app_python3s_admin.xml index 6d7af04a608..bba47655e28 100644 --- a/src/modules/app_python3s/doc/app_python3s_admin.xml +++ b/src/modules/app_python3s/doc/app_python3s_admin.xml @@ -104,7 +104,7 @@ modparam("app_python3s", "load", "/usr/local/etc/kamailio/myscript.py") -
+
<varname>script_init</varname> (string) The name of the Python function to be executed when the script is @@ -125,6 +125,30 @@ def ksr_script_init(): KSR.info("init python script\n") return 1 ... + + +
+
+ <varname>script_child_init</varname> (string) + + The name of the Python function to be executed when &kamailio; forks + child processes at startup and when the script is reloaded. + + + + Default value is (not set). + + + + Set <varname>script_child_init</varname> parameter + +... +modparam("app_python3s", "script_child_init", "ksr_script_child_init") +... +def ksr_script_child_init(): + KSR.info("child init python script\n") + return 1 +...