Module: kamailio
Branch: master
Commit: d79e00892760f296c851740b33f8df3b5a6324ad
URL:
https://github.com/kamailio/kamailio/commit/d79e00892760f296c851740b33f8df3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-12-06T10:55:20+01:00
app_python3s: docs for script_child_init parameter
---
Modified: src/modules/app_python3s/doc/app_python3s_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/d79e00892760f296c851740b33f8df3…
Patch:
https://github.com/kamailio/kamailio/commit/d79e00892760f296c851740b33f8df3…
---
diff --git a/src/modules/app_python3s/doc/app_python3s_admin.xml
b/src/modules/app_python3s/doc/app_python3s_admin.xml
index 6d7af04a60..bba47655e2 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")
</programlisting>
</example>
</section>
- <section id="app_python3s.p.load">
+ <section id="app_python3s.p.script_init">
<title><varname>script_init</varname> (string)</title>
<para>
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
...
+</programlisting>
+ </example>
+ </section>
+ <section id="app_python3s.p.script_child_init">
+ <title><varname>script_child_init</varname>
(string)</title>
+ <para>
+ The name of the Python function to be executed when &kamailio; forks
+ child processes at startup and when the script is reloaded.
+ </para>
+ <para>
+ <emphasis>
+ Default value is <quote></quote> (not set).
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>script_child_init</varname>
parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("app_python3s", "script_child_init",
"ksr_script_child_init")
+...
+def ksr_script_child_init():
+ KSR.info("child init python script\n")
+ return 1
+...
</programlisting>
</example>
</section>