Hangup Cause in LUA Hangup Hook
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
Sorry for the delayed response. I'm 99% sure that you want this: http://wiki.freeswitch.org/wiki/Lua#Special_Case:_env_object -MC On Wed, Feb 8, 2012 at 4:08 AM, Gerald Weber <gerald.weber@besharp.at>wrote:
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
Hi guys, I have setup an rtmp unauthenticated connection, however i need to authenticate it, any body knows how? thank you kind regards Sherif Omran
participants (3)
-
Gerald Weber
-
Michael Collins
-
Sherif Omran