Module: kamailio Branch: master Commit: 6ab88720bf4a55cce50294c598f8f3f4a1cf2354 URL: https://github.com/kamailio/kamailio/commit/6ab88720bf4a55cce50294c598f8f3f4a1cf2354
Author: Kamailio Dev <[email protected]> Committer: Kamailio Dev <[email protected]> Date: 2017-11-20T17:31:38+01:00 modules: readme files regenerated - app_python ... [skip ci] --- Modified: src/modules/app_python/README --- Diff: https://github.com/kamailio/kamailio/commit/6ab88720bf4a55cce50294c598f8f3f4a1cf2354.diff Patch: https://github.com/kamailio/kamailio/commit/6ab88720bf4a55cce50294c598f8f3f4a1cf2354.patch --- diff --git a/src/modules/app_python/README b/src/modules/app_python/README index c24477c35f..2f05fc1d91 100644 --- a/src/modules/app_python/README +++ b/src/modules/app_python/README @@ -21,9 +21,10 @@ Maxim Sobolev 3. Parameters - 3.1. script_name (string) - 3.2. mod_init_function (string) - 3.3. child_init_method (string) + 3.1. load (string) + 3.2. script_name (string) + 3.3. mod_init_function (string) + 3.4. child_init_method (string) 4. Functions @@ -31,7 +32,7 @@ Maxim Sobolev List of Examples - 1.1. Set script_name parameter + 1.1. Set load parameter 1.2. Set mod_init_function parameter 1.3. Set child_init_method parameter 1.4. python_exec usage @@ -48,9 +49,10 @@ Chapter 1. Admin Guide 3. Parameters - 3.1. script_name (string) - 3.2. mod_init_function (string) - 3.3. child_init_method (string) + 3.1. load (string) + 3.2. script_name (string) + 3.3. mod_init_function (string) + 3.4. child_init_method (string) 4. Functions @@ -83,23 +85,29 @@ Chapter 1. Admin Guide 3. Parameters - 3.1. script_name (string) - 3.2. mod_init_function (string) - 3.3. child_init_method (string) + 3.1. load (string) + 3.2. script_name (string) + 3.3. mod_init_function (string) + 3.4. child_init_method (string) -3.1. script_name (string) +3.1. load (string) - The path to the fiel with Python code to be executed from configuration + The path to the file with Python code to be executed from configuration file. Default value is â/usr/local/etc/kamailio/handler.pyâ. - Example 1.1. Set script_name parameter + Example 1.1. Set load parameter ... -modparam("app_python", "script_name", "/usr/local/etc/kamailio/myscript.py") +modparam("app_python", "load", "/usr/local/etc/kamailio/myscript.py") ... -3.2. mod_init_function (string) +3.2. script_name (string) + + This is same as "load" parameter, kept for backward compatibility with + the older versions of the module. + +3.3. mod_init_function (string) The Python function to be executed by this module when it is initialied by Kamailio. @@ -111,7 +119,7 @@ modparam("app_python", "script_name", "/usr/local/etc/kamailio/myscript.py") modparam("app_python", "mod_init_function", "my_mod_init") ... -3.3. child_init_method (string) +3.4. child_init_method (string) The Python function to be executed by this module when a new worker process (child) is initialied by Kamailio.
_______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
