|
|
@@ -44,6 +44,12 @@ function ColibriFocus(connection, bridgejid) {
|
|
44
|
44
|
this.peers = [];
|
|
45
|
45
|
this.confid = null;
|
|
46
|
46
|
|
|
|
47
|
+ /**
|
|
|
48
|
+ * Local XMPP resource used to join the multi user chat.
|
|
|
49
|
+ * @type {*}
|
|
|
50
|
+ */
|
|
|
51
|
+ this.myMucResource = Strophe.getResourceFromJid(connection.emuc.myroomjid);
|
|
|
52
|
+
|
|
47
|
53
|
/**
|
|
48
|
54
|
* Default channel expire value in seconds.
|
|
49
|
55
|
* @type {number}
|
|
|
@@ -172,7 +178,7 @@ ColibriFocus.prototype._makeConference = function () {
|
|
172
|
178
|
elem.c(channel, {
|
|
173
|
179
|
initiator: 'true',
|
|
174
|
180
|
expire: '15',
|
|
175
|
|
- endpoint: 'fix_me_focus_endpoint'
|
|
|
181
|
+ endpoint: self.myMucResource
|
|
176
|
182
|
});
|
|
177
|
183
|
if (isData)
|
|
178
|
184
|
elem.attrs({port: 5000});
|
|
|
@@ -400,7 +406,7 @@ ColibriFocus.prototype.createdConference = function (result) {
|
|
400
|
406
|
initiator: 'true',
|
|
401
|
407
|
expire: self.channelExpire,
|
|
402
|
408
|
id: self.mychannel[channel].attr('id'),
|
|
403
|
|
- endpoint: 'fix_me_focus_endpoint'
|
|
|
409
|
+ endpoint: self.myMucResource
|
|
404
|
410
|
});
|
|
405
|
411
|
|
|
406
|
412
|
// FIXME: should reuse code from .toJingle
|
|
|
@@ -422,7 +428,7 @@ ColibriFocus.prototype.createdConference = function (result) {
|
|
422
|
428
|
{
|
|
423
|
429
|
initiator: 'true',
|
|
424
|
430
|
expire: self.channelExpire,
|
|
425
|
|
- endpoint: 'fix_me_focus_endpoint',
|
|
|
431
|
+ endpoint: self.myMucResource,
|
|
426
|
432
|
port: sctpPort
|
|
427
|
433
|
}
|
|
428
|
434
|
);
|