[Freeswitch-users] Hangup Cause in LUA Hangup Hook
Gerald Weber
gerald.weber at besharp.at
Wed Feb 8 15:08:11 MSK 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120208/46f45ec7/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list