Kaynağa Gözat

Add config.hosts.domain to the callstats id

dev1
Devin Wilson 9 yıl önce
ebeveyn
işleme
35ce33da81

+ 1
- 0
JitsiConference.js Dosyayı Görüntüle

43
     this.statistics = new Statistics(this.xmpp, {
43
     this.statistics = new Statistics(this.xmpp, {
44
         callStatsID: this.options.config.callStatsID,
44
         callStatsID: this.options.config.callStatsID,
45
         callStatsSecret: this.options.config.callStatsSecret,
45
         callStatsSecret: this.options.config.callStatsSecret,
46
+        callStatsConfIDNamespace: this.options.config.callStatsConfIDNamespace || this.options.config.hosts.domain,
46
         disableThirdPartyRequests: this.options.config.disableThirdPartyRequests
47
         disableThirdPartyRequests: this.options.config.disableThirdPartyRequests
47
     });
48
     });
48
     setupListeners(this);
49
     setupListeners(this);

+ 1
- 1
modules/statistics/CallStats.js Dosyayı Görüntüle

102
 
102
 
103
         this.userID = Settings.getCallStatsUserName();
103
         this.userID = Settings.getCallStatsUserName();
104
 
104
 
105
-        this.confID = this.session.room.roomjid;
105
+        this.confID = options.callStatsConfIDNamespace + '/' + this.session.getName();
106
 
106
 
107
         //userID is generated or given by the origin server
107
         //userID is generated or given by the origin server
108
         callStats.initialize(options.callStatsID,
108
         callStats.initialize(options.callStatsID,

+ 4
- 0
modules/xmpp/JingleSessionPC.js Dosyayı Görüntüle

309
     return this.state == 'active';
309
     return this.state == 'active';
310
 };
310
 };
311
 
311
 
312
+JingleSessionPC.prototype.getName = function() {
313
+    return this.room.roomJid;
314
+};
315
+
312
 JingleSessionPC.prototype.sendIceCandidate = function (candidate) {
316
 JingleSessionPC.prototype.sendIceCandidate = function (candidate) {
313
     var self = this;
317
     var self = this;
314
     if (candidate && !this.lasticecandidate) {
318
     if (candidate && !this.lasticecandidate) {

Loading…
İptal
Kaydet