<div dir="ltr">I believe that causecode is false until the call hangsup, you may want to check originateCause when causecode == false something like below;<div><br></div><div><br></div><div><div>if(session.causecode == false)</div><div> {</div><div> this.ogCallCauseCode = session.originateCause;</div><div> }</div><div> else</div><div> {</div><div> this.ogCallCauseCode = session.causecode;</div><div> }</div></div><div><br></div><div>thanks</div><div>Matt</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px;font-family:verdana,sans-serif">Matt Broad</span><br style="color:rgb(136,136,136);font-size:12.8px"><div style="color:rgb(136,136,136);font-size:12.8px"><font face="verdana, sans-serif">Tel: <a href="tel:+44%2020%203011%201313" value="+442030111313" style="color:rgb(17,85,204)" target="_blank">+44 (0)203 011 1313</a></font></div><div style="color:rgb(136,136,136);font-size:12.8px"><span style="font-family:verdana,sans-serif;font-size:12.8px">Web:</span><span style="font-family:verdana,sans-serif;font-size:12.8px"> </span><a href="http://www.supportedbusiness.com/" style="font-family:verdana,sans-serif;font-size:12.8px;color:rgb(17,85,204)" target="_blank">www.supportedbusiness.com</a><br></div><div style="color:rgb(136,136,136);font-size:12.8px"><div dir="ltr"><img src="http://www.supportedbusiness.com/coming-soon-logo.png" width="200" height="47" style="font-family:verdana,sans-serif;font-size:12.8px"><br></div><div dir="ltr"><span style="color:rgb(34,34,34);font-size:small">The content of this email, including any files or documents attached, are confidential and may also be legally privileged, protected from disclosure and/or protected by other legal rules. It is written without prejudice and is intended for the individual specified in the message only. The views and opinions included in this email belong to their author and do not necessarily mirror the views and opinions of the company. Full security of this email cannot be ensured as, despite our best efforts, the data included in emails could be infected, intercepted, or corrupted. Do not share any part of this message with any third party, without a written consent of the sender. If you have received this message in error, please notify us and remove it from your system.</span><br></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 16 June 2018 at 13:42, Francesco Facco de Lagarda <span dir="ltr"><<a href="mailto:francesco@delagarda.com" target="_blank">francesco@delagarda.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="IT" link="#0563C1" vlink="#954F72"><div class="m_-7858404939338612584WordSection1"><p class="MsoNormal"><span lang="EN-US">I am trying the undestand the hangup reason in javascript<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I noticed there is no <u></u><u></u></span></p><p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US">session.hangupCause<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">but there IS a<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> session.causecode<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Docs say it gives the Q.931 code for hangup,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">But, on occupied calls, I just get “false” when I ask<br><br>session.causecode<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">What’s happening..<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br></blockquote></div><br></div>