Procházet zdrojové kódy

Defaults to jitsi instead of focus for remote user id reported to callstats.

master
damencho před 8 roky
rodič
revize
9e806dcb81
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 7
    2
      modules/statistics/CallStats.js

+ 7
- 2
modules/statistics/CallStats.js Zobrazit soubor

@@ -47,6 +47,12 @@ var fabricEvent = {
47 47
 
48 48
 var callStats = null;
49 49
 
50
+/**
51
+ * The user id to report to callstats as destination.
52
+ * @type {string}
53
+ */
54
+const DEFAULT_REMOTE_USER = "jitsi";
55
+
50 56
 function initCallback (err, msg) {
51 57
     logger.log("CallStats Status: err=" + err + " msg=" + msg);
52 58
 
@@ -59,7 +65,7 @@ function initCallback (err, msg) {
59 65
     }
60 66
 
61 67
     var ret = callStats.addNewFabric(this.peerconnection,
62
-        Strophe.getResourceFromJid(this.session.peerjid),
68
+        DEFAULT_REMOTE_USER,
63 69
         callStats.fabricUsage.multiplex,
64 70
         this.confID,
65 71
         this.pcCallback.bind(this));
@@ -141,7 +147,6 @@ var CallStats = _try_catch(function(jingleSession, Settings, options) {
141 147
         CallStats.feedbackEnabled = false;
142 148
         callStats = new callstats($, io, jsSHA); // eslint-disable-line new-cap
143 149
 
144
-        this.session = jingleSession;
145 150
         this.peerconnection = jingleSession.peerconnection.peerconnection;
146 151
 
147 152
         this.userID = {

Načítá se…
Zrušit
Uložit