freeswitch/scripts/socket/freepy
2009-06-16 18:11:44 +00:00
..
__init__.py refactor to fix some major DRY violations 2009-06-16 18:11:44 +00:00
apirequest_sm.py add debugging information 2008-07-13 03:14:44 +00:00
apirequest.sm add debugging information 2008-07-13 03:14:44 +00:00
bgapirequest_sm.py fixed protocol incompatibility, make more robust and less anal regarding spurious blank lines, debugging instructions added to README. debug off by default 2008-07-13 04:10:52 +00:00
bgapirequest.sm fixed protocol incompatibility, make more robust and less anal regarding spurious blank lines, debugging instructions added to README. debug off by default 2008-07-13 04:10:52 +00:00
fseventlistener.py set field so the protocol object can easily get factor instance. add ability to add observers for specific events and dispatch events to observers. still more work needed there, since there is no relation between observers and what events are subscribed from freeswitch 2008-09-11 21:12:43 +00:00
fshelper.py transfer calls 2007-10-26 05:52:41 +00:00
globals.py improve debuggability 2008-09-18 00:07:15 +00:00
INSTALL broadcast wav functionality 2007-10-22 19:50:34 +00:00
loginrequest_sm.py add debugging information 2008-07-13 03:14:44 +00:00
loginrequest.sm add debugging information 2008-07-13 03:14:44 +00:00
models.py event_socket connection lib for twisted python apps 2007-10-07 16:47:10 +00:00
README improve docs 2008-09-11 22:25:35 +00:00
request.py improve debuggability 2008-09-18 00:07:15 +00:00

DESCRIPTION
===========

Socket library to interface w/ freeswitch mod_event_socket from Twisted python applications.  Used by WikiPBX for all non-http communication w/ Freeswitch.

Install
=======

See INSTALL

Using/Examples
==============

The WikiPBX project uses this lib heavily, so looking at that code (wikipbx.org) is a good example until more docs are added.


Debugging
=========

Set FREEPY_DEBUG_ON = True in globals.py

TODO: pull this from an environment variable or a config file

Rebulding State Machines
========================

(you only need to do this if you changed an .sm file)

for each .sm file:

java -jar /usr/src/smc/bin/Smc.jar -python -g THE.sm

and loginrequest.sm -> loginrequest_sm.py with the state machine.

TODO: create a Makefile to do this stuff
TODO: use Miro Samek's HSM framework instead of SMC