|
|
|
@ -571,7 +571,7 @@ Strophe.addConnectionPlugin('jingle', { |
|
|
|
|
// validity have to be fetched before creating the peerconnection
|
|
|
|
|
// TODO: implement refresh via updateIce as described in
|
|
|
|
|
// https://code.google.com/p/webrtc/issues/detail?id=1650
|
|
|
|
|
var self = this; |
|
|
|
|
//var self = this;
|
|
|
|
|
this.connection.sendIQ( |
|
|
|
|
$iq({type: 'get', to: this.connection.domain}) |
|
|
|
|
.c('services', {xmlns: 'urn:xmpp:extdisco:1'}).c('service', {host: 'turn.' + this.connection.domain}), |
|
|
|
@ -611,7 +611,7 @@ Strophe.addConnectionPlugin('jingle', { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
self.ice_config.iceServers = iceservers; |
|
|
|
|
this.ice_config.iceServers = iceservers; |
|
|
|
|
}, |
|
|
|
|
function (err) { |
|
|
|
|
console.warn('getting turn credentials failed', err); |
|
|
|
|