Auto detect https in bbb_webrtc_bridge_sip.js and select between wss and ws
This commit is contained in:
parent
dc73b512e1
commit
0d6acd27b4
@ -192,7 +192,7 @@ function createUAWithStuns(username, server, callback, stunsConfig, makeCallFunc
|
||||
*/
|
||||
var configuration = {
|
||||
uri: 'sip:' + encodeURIComponent(username) + '@' + server,
|
||||
wsServers: 'ws://' + server + '/ws',
|
||||
wsServers: ('https:' == document.location.protocol ? 'wss://' : 'ws://') + server + '/ws',
|
||||
displayName: username,
|
||||
register: false,
|
||||
traceSip: true,
|
||||
|
@ -192,7 +192,7 @@ function createUAWithStuns(username, server, callback, stunsConfig, makeCallFunc
|
||||
*/
|
||||
var configuration = {
|
||||
uri: 'sip:' + encodeURIComponent(username) + '@' + server,
|
||||
wsServers: 'ws://' + server + '/ws',
|
||||
wsServers: ('https:' == document.location.protocol ? 'wss://' : 'ws://') + server + '/ws',
|
||||
displayName: username,
|
||||
register: false,
|
||||
traceSip: true,
|
||||
|
@ -175,7 +175,7 @@ function createUAWithStuns(username, server, callback, stunsConfig, makeCallFunc
|
||||
*/
|
||||
var configuration = {
|
||||
uri: 'sip:' + encodeURIComponent(username) + '@' + server,
|
||||
wsServers: 'ws://' + server + '/ws',
|
||||
wsServers: ('https:' == document.location.protocol ? 'wss://' : 'ws://') + server + '/ws',
|
||||
displayName: username,
|
||||
register: false,
|
||||
traceSip: true,
|
||||
|
Loading…
Reference in New Issue
Block a user