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