diff --git a/bigbluebutton-html5/imports/api/audio/client/bridge/sip.js b/bigbluebutton-html5/imports/api/audio/client/bridge/sip.js index 9b5b12b0f88288466e4442a1e9ff79edf190633e..fa9c8a9a73f859d4bfb17c88152b24498cdacf16 100755 --- a/bigbluebutton-html5/imports/api/audio/client/bridge/sip.js +++ b/bigbluebutton-html5/imports/api/audio/client/bridge/sip.js @@ -233,6 +233,7 @@ class SIPSession { const { callerIdName, + sessionToken, } = this.user; // WebView safari needs a transceiver to be added. Made it a SIP.js hack. @@ -272,10 +273,11 @@ class SIPSession { }; let userAgentConnected = false; + const token = `sessionToken=${sessionToken}`; this.userAgent = new window.SIP.UA({ uri: `sip:${encodeURIComponent(callerIdName)}@${hostname}`, - wsServers: `${(protocol === 'https:' ? 'wss://' : 'ws://')}${hostname}/ws`, + wsServers: `${(protocol === 'https:' ? 'wss://' : 'ws://')}${hostname}/ws?${token}`, displayName: callerIdName, register: false, traceSip: true,