Browse Source

Add config.hosts.domain to the callstats id

dev1
Devin Wilson 9 years ago
parent
commit
35ce33da81
3 changed files with 6 additions and 1 deletions
  1. 1
    0
      JitsiConference.js
  2. 1
    1
      modules/statistics/CallStats.js
  3. 4
    0
      modules/xmpp/JingleSessionPC.js

+ 1
- 0
JitsiConference.js View File

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

+ 1
- 1
modules/statistics/CallStats.js View File

@@ -102,7 +102,7 @@ var CallStats = _try_catch(function(jingleSession, Settings, options) {
102 102
 
103 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 107
         //userID is generated or given by the origin server
108 108
         callStats.initialize(options.callStatsID,

+ 4
- 0
modules/xmpp/JingleSessionPC.js View File

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

Loading…
Cancel
Save