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