ソースを参照

Adds fabricAttributes to callstats with indication p2p or server.

dev1
damencho 8年前
コミット
fd823b1209
1個のファイルの変更7行の追加0行の削除
  1. 7
    0
      modules/statistics/CallStats.js

+ 7
- 0
modules/statistics/CallStats.js ファイルの表示

512
     _addNewFabric() {
512
     _addNewFabric() {
513
         logger.info('addNewFabric', this.remoteUserID);
513
         logger.info('addNewFabric', this.remoteUserID);
514
         try {
514
         try {
515
+            const fabricAttributes = {
516
+                remoteEndpointType:
517
+                    this.tpc.isP2P
518
+                        ? CallStats.backend.endpointType.peer
519
+                        : CallStats.backend.endpointType.server
520
+            };
515
             const ret
521
             const ret
516
                 = CallStats.backend.addNewFabric(
522
                 = CallStats.backend.addNewFabric(
517
                     this.peerconnection,
523
                     this.peerconnection,
518
                     this.remoteUserID,
524
                     this.remoteUserID,
519
                     CallStats.backend.fabricUsage.multiplex,
525
                     CallStats.backend.fabricUsage.multiplex,
520
                     this.confID,
526
                     this.confID,
527
+                    fabricAttributes,
521
                     CallStats._addNewFabricCallback);
528
                     CallStats._addNewFabricCallback);
522
 
529
 
523
             this.hasFabric = true;
530
             this.hasFabric = true;

読み込み中…
キャンセル
保存