<span style='font-family:Verdana'><span style='font-size:12px'>Hi All,<br />
<br />
Is there any way to get a real disconnection cause for leg B in the following script ?<br />
<br />
<br />
if (session_a:ready() and session_b:ready()) then<br />
<div>
         <br />
         freeswitch.bridge(session_a,session_b)<br />
        <br />
         -- session_b gets disconnect here ...<br />
         </div>
<div>
         local session_b_hangup_cause = session_b:hangupCause()<br />
        <br />
        <br />
        <br />
        session_b_hangup_cause is always "SUCCESS" after debridging while log and CDR shows correct value - can get it to my script ?<br />
        <br />
        Thanks / Mike</div>
<div>
        Ā </div>
<div>
        Ā </div>
</span></span>