Sorry for the delayed response. I'm 99% sure that you want this:
http://wiki.freeswitch.org/wiki/Lua#Special_Case:_env_object
-MC
Hello,
is there a way to get the HangupCause in a HangupHook in LUA ?
following commands return nil:
s:getVariable("hangup_cause")
s:getVariable("hangup_cause_q850")
s:hangupCause() returns “NONE”
I know I can set api_hangup_hook and use the env object to get the channel vars, but i think that’s a litte overkill to use 2 scripts for 1 Call.
Thx
gw
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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