I am working on adding functionality to an external project that already
supports Asterisk. I have used hook events with lua to capture call data
on hangup and hangup complete before. Unfortunately, I need
authenticated json rpc or xmlrpc. The original code I am working from is
also in Python. Lua xml and json rpc modules do not seem to do
authenticated requests. Since I already have Python, it seems to be easier.
https://wiki.freeswitch.org/wiki/Mod_python#Hangup_hook_.2B_SQLAlchemy_crashes_switch,
it says that hangup hooks are very buggy and should be avoided. Is this
still the case in the last year or so (recent versions)? If so, what is
the best way to do this? If not, can someone post a simple equivalent of
event:getHeader in a simple handler for hangups so that I can start
working on this?
Do I use def fsapi(session, stream, env, args) or def handler(session,
args)?
Thank you for help getting started,
Trever
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org