Przeglądaj źródła

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

master
damencho 8 lat temu
rodzic
commit
9e806dcb81
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7
    2
      modules/statistics/CallStats.js

+ 7
- 2
modules/statistics/CallStats.js Wyświetl plik

47
 
47
 
48
 var callStats = null;
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
 function initCallback (err, msg) {
56
 function initCallback (err, msg) {
51
     logger.log("CallStats Status: err=" + err + " msg=" + msg);
57
     logger.log("CallStats Status: err=" + err + " msg=" + msg);
52
 
58
 
59
     }
65
     }
60
 
66
 
61
     var ret = callStats.addNewFabric(this.peerconnection,
67
     var ret = callStats.addNewFabric(this.peerconnection,
62
-        Strophe.getResourceFromJid(this.session.peerjid),
68
+        DEFAULT_REMOTE_USER,
63
         callStats.fabricUsage.multiplex,
69
         callStats.fabricUsage.multiplex,
64
         this.confID,
70
         this.confID,
65
         this.pcCallback.bind(this));
71
         this.pcCallback.bind(this));
141
         CallStats.feedbackEnabled = false;
147
         CallStats.feedbackEnabled = false;
142
         callStats = new callstats($, io, jsSHA); // eslint-disable-line new-cap
148
         callStats = new callstats($, io, jsSHA); // eslint-disable-line new-cap
143
 
149
 
144
-        this.session = jingleSession;
145
         this.peerconnection = jingleSession.peerconnection.peerconnection;
150
         this.peerconnection = jingleSession.peerconnection.peerconnection;
146
 
151
 
147
         this.userID = {
152
         this.userID = {

Ładowanie…
Anuluj
Zapisz