Hi All,

Is there any way to get a real disconnection cause for leg B in the following script ?


if (session_a:ready() and session_b:ready()) then
   
   freeswitch.bridge(session_a,session_b)

   -- session_b gets disconnect here ...
   
   local session_b_hangup_cause = session_b:hangupCause()



session_b_hangup_cause is always "SUCCESS" after debridging while log and CDR shows correct value - can get it to my script ?

Thanks / Mike