allow username with spaces

This commit is contained in:
Gustavo Salazar 2014-03-24 16:00:13 -05:00
parent a79e224f4b
commit 55773f594e

View File

@ -1,5 +1,4 @@
var bbbAudioConference; var bbbAudioConference;
var currentSession; var currentSession;
@ -26,7 +25,7 @@ function webrtc_call(username, voiceBridge, server, callback) {
console.log("user " + username + " calling to " + voiceBridge); console.log("user " + username + " calling to " + voiceBridge);
var configuration = { var configuration = {
uri: 'sip:' + username + '@' + server, uri: 'sip:' + escape(username) + '@' + server,
// password: freeswitchPassword, // password: freeswitchPassword,
// ws_servers: 'wss://' + server + ':7443', // ws_servers: 'wss://' + server + ':7443',
ws_servers: 'ws://' + server + ':5066', ws_servers: 'ws://' + server + ':5066',