Embedded Python interpreter with example XMLRPC interface to replace the manager protocol
Excerpt from http://vox.groovy.net/moin/PyAsterisk
This is the home of PyAsterisk, a program which has three main files:
Upon startup, res_python.c will attempt to import a method called start() from the PyAsteriskConfig module which must exist somewhere in the path. By default (this is set at compile time) the path includes /etc/asterisk/PyAsterisk and this is a good place to put the configuration file.
- res_python.c: A module in C that embeds a Python interpreter into the Asterisk PBX software.
- PyAsterisk.py: A python wrapper around res_python (actually the '_asterisk' module) that gives a slightly cleaner and more object oriented interface to the API exposed by res_python.c
- PyAsteriskXMLRPC.py: an object that defines the functions that are to be exposed via XMLRPC over HTTPS as it makes use of the (supplied) SecureXMLRPCServer.py