Olle E. Johansson 1e3e5217af app_python remove svn ID's 10 jaren geleden
..
doc 9114eebc9b docbook: consitent titles of main section 14 jaren geleden
python_examples cc9b6cad11 mod_python: Changed Loggers.py to use recent changes (python abstraction layers). 13 jaren geleden
Makefile 17999042f6 module makefiles - remove SVN id and replace "example" with module name 10 jaren geleden
README ba7961bb89 modules*: regenerated readmes 14 jaren geleden
README.TestCase-Loggers acbeda46ac app_python: expand log facilities 13 jaren geleden
mod_Core.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
mod_Core.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
mod_Logger.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
mod_Logger.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
mod_Ranks.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
mod_Ranks.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
mod_Router.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
mod_Router.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_exec.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_exec.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_iface.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_iface.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_mod.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_mod.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_msgobj.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_msgobj.h 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_support.c 1e3e5217af app_python remove svn ID's 10 jaren geleden
python_support.h 1e3e5217af app_python remove svn ID's 10 jaren geleden

README

app_python Module

Maxim Sobolev

Edited by

Maxim Sobolev

Copyright © 2010 Maxim Sobolev
__________________________________________________________________

Table of Contents

1. Admin Guide

1. Overview
2. Dependencies

2.1. Kamailio Modules
2.2. External Libraries or Applications

3. Parameters

3.1. script_name (string)
3.2. mod_init_function (string)
3.3. child_init_method (string)

4. Functions

4.1. python_exec(method [, mystr])

List of Examples

1.1. Set script_name parameter
1.2. Set mod_init_function parameter
1.3. Set child_init_method parameter
1.4. python_exec usage

Chapter 1. Admin Guide

Table of Contents

1. Overview
2. Dependencies

2.1. Kamailio Modules
2.2. External Libraries or Applications

3. Parameters

3.1. script_name (string)
3.2. mod_init_function (string)
3.3. child_init_method (string)

4. Functions

4.1. python_exec(method [, mystr])

1. Overview

This module allows executing Python scripts from config file, exporting
functions to access the SIP message from Python.

2. Dependencies

2.1. Kamailio Modules
2.2. External Libraries or Applications

2.1. Kamailio Modules

The following modules must be loaded before this module:
* none.

2.2. External Libraries or Applications

The following libraries or applications must be installed before
running Kamailio with this module loaded:
* python-dev - Python devel library.

3. Parameters

3.1. script_name (string)
3.2. mod_init_function (string)
3.3. child_init_method (string)

3.1. script_name (string)

TBD.

Default value is “/usr/local/etc/sip-router/handler.py”.

Example 1.1. Set script_name parameter
...
modparam("app_python", "script_name", "/usr/local/etc/sip-router/myscript.py")
...

3.2. mod_init_function (string)

TBD.

Default value is “mod_init”.

Example 1.2. Set mod_init_function parameter
...
modparam("app_python", "mod_init_function", "my_mod_init")
...

3.3. child_init_method (string)

TBD.

Default value is “child_init”.

Example 1.3. Set child_init_method parameter
...
modparam("app_python", "child_init_method", "my_child_init")
...

4. Functions

4.1. python_exec(method [, mystr])

4.1. python_exec(method [, mystr])

TBD.

Example 1.4. python_exec usage
...
python_exec("...");
python_exec("...", "...");
...