Hello Saúl,
o Saúl Ibarra [06/10/09 00:12]:
Hi all,
I'm new to sems, so if what I ask has already been answered please
just point me there ;)
After some initial reading and testing I want to try and create my own
module. I'm more used to Python than to c++ so I believe I have to use
py_sems (is ivr deprected??).
some history about python in SEMS: The initial plan was to deprecate ivr
module in favor of py_sems. Theoretically py_sems can be kept up to date
with core functionality more easily because the python wrappers are
generated, and functionality can be exposed more easily with generated
wrappers.
Still, the ivr module is more popular, probably because of its simple
and defined API, and it is still more actively maintained. It is limited
though, its not possible to implement some more advanced call flows.
(In practice, last time i checked py_sems depends on a specific sip4
version, and it would not work very well at all.)
There are a few examples and the readme file
(http://ftp.iptel.org/pub/sems/doc/current/ModuleDoc_py_sems.html),
but I can't find an API reference guide... is there any guide-like
stuff in which Python modules, classes and attributes are
listed/explained?
I think help(modulename) works in py_sems script if you run SEMS in
foreground with -D 3 -E, but you can also look at the .sip files in
https://svn.berlios.de/svnroot/repos/sems/trunk/apps/py_sems/sip
Anyway, if I were you I would have a look at DSM in svn trunk:
http://svn.berlios.de/wsvn/sems/trunk/apps/dsm/doc/Readme.dsm.txt
http://svn.berlios.de/wsvn/sems/trunk/apps/dsm/doc/dsm_syntax.txt
http://svn.berlios.de/wsvn/sems/trunk/apps/dsm/doc/examples/dsm_di_monit/Readme_ddm.txt
and the modules for it
http://svn.berlios.de/wsvn/sems/trunk/apps/dsm/mods/
every module has a text file with description in its directory.
DSM makes development of correct, comprehensible, high performance
applications simple.
Chances are that you are able to implement your application completely
or big parts of it as DSM state machine script. If not, with mod_py you
have got the full power and ease of DSM + python combined:
http://svn.berlios.de/wsvn/sems/trunk/apps/dsm/mods/mod_py/Readme.mod_py.txt
In the long run, mod_py is supposed to replace both ivr and py_sems modules.
Stefan
Thanks in advance,
Best regards
--
Stefan Sayer
VoIP Services
[email protected]
www.iptego.com
IPTEGO GmbH
Wittenbergplatz 1
10789 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems