I am trying the undestand the hangup reason in javascript I noticed there is no session.hangupCause but there IS a session.causecode Docs say it gives the Q.931 code for hangup, But, on occupied calls, I just get "false" when I ask session.causecode What's happening..
I believe that causecode is false until the call hangsup, you may want to check originateCause when causecode == false something like below; if(session.causecode == false) { this.ogCallCauseCode = session.originateCause; } else { this.ogCallCauseCode = session.causecode; } thanks Matt Matt Broad Tel: +44 (0)203 011 1313 <+44%2020%203011%201313> Web: www.supportedbusiness.com 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. On 16 June 2018 at 13:42, Francesco Facco de Lagarda < francesco@delagarda.com> wrote:
I am trying the undestand the hangup reason in javascript
I noticed there is no
session.hangupCause
but there IS a
session.causecode
Docs say it gives the Q.931 code for hangup,
But, on occupied calls, I just get “false” when I ask
session.causecode
What’s happening..
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
https://freeswitch.org/confluence/display/FREESWITCH/Session+cause <https://freeswitch.org/confluence/display/FREESWITCH/Session+cause>
On Jun 16, 2018, at 8:42 AM, Francesco Facco de Lagarda <francesco@delagarda.com> wrote:
I am trying the undestand the hangup reason in javascript I noticed there is no session.hangupCause but there IS a session.causecode
Docs say it gives the Q.931 code for hangup,
But, on occupied calls, I just get “false” when I ask
session.causecode
What’s happening..
participants (3)
-
Francesco Facco de Lagarda
-
Matt Broad
-
Michael Jerris