Sfoglia il codice sorgente

Adds fabricAttributes to callstats with indication p2p or server.

dev1
damencho 8 anni fa
parent
commit
fd823b1209
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7
    0
      modules/statistics/CallStats.js

+ 7
- 0
modules/statistics/CallStats.js Vedi File

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

Loading…
Annulla
Salva