%docentities; ]> &adminguide;
Overview This module allows executing Python scripts from config file, exporting functions to access the SIP message from Python.
Dependencies
&kamailio; Modules The following modules must be loaded before this module: none.
External Libraries or Applications The following libraries or applications must be installed before running &kamailio; with this module loaded: python-dev - Python devel library.
Parameters
<varname>script_name</varname> (string) TBD. Default value is /usr/local/etc/sip-router/handler.py. Set <varname>script_name</varname> parameter ... modparam("app_python", "script_name", "/usr/local/etc/sip-router/myscript.py") ...
<varname>mod_init_function</varname> (string) TBD. Default value is mod_init. Set <varname>mod_init_function</varname> parameter ... modparam("app_python", "mod_init_function", "my_mod_init") ...
<varname>child_init_method</varname> (string) TBD. Default value is child_init. Set <varname>child_init_method</varname> parameter ... modparam("app_python", "child_init_method", "my_child_init") ...
Functions
<function moreinfo="none">python_exec(method [, mystr])</function> TBD. <function>python_exec</function> usage ... python_exec("..."); python_exec("...", "..."); ...