[Freeswitch-users] getting disconnect cause for a leg after bridge in Lua
Mi Ke
mi.ke at null.net
Sat Aug 13 13:46:23 MSD 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110813/4329e421/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list