Bläddra i källkod

feat(callstats) Add `callStatsConfigParams` config

master
hmuresan 3 år sedan
förälder
incheckning
4dc642fb4d
2 ändrade filer med 23 tillägg och 0 borttagningar
  1. 22
    0
      config.js
  2. 1
    0
      react/features/base/config/configWhitelist.js

+ 22
- 0
config.js Visa fil

@@ -530,6 +530,28 @@ var config = {
530 530
     // callStatsID: '',
531 531
     // callStatsSecret: '',
532 532
 
533
+    // The callstats initialize config params as described in the API:
534
+    // https://docs.callstats.io/docs/javascript#callstatsinitialize-with-app-secret
535
+    // callStatsConfigParams: {
536
+    //     disableBeforeUnloadHandler: true, // disables callstats.js's window.onbeforeunload parameter.
537
+    //     applicationVersion: "app_version", // Application version specified by the developer.
538
+    //     disablePrecalltest: true, // disables the pre-call test, it is enabled by default.
539
+    //     siteID: "siteID", // The name/ID of the site/campus from where the call/pre-call test is made.
540
+    //     additionalIDs: { // additionalIDs object, contains application related IDs.
541
+    //         customerID: "Customer Identifier. Example, walmart.",
542
+    //         tenantID: "Tenant Identifier. Example, monster.",
543
+    //         productName: "Product Name. Example, Jitsi.",
544
+    //         meetingsName: "Meeting Name. Example, Jitsi loves callstats.",
545
+    //         serverName: "Server/MiddleBox Name. Example, jvb-prod-us-east-mlkncws12.",
546
+    //         pbxID: "PBX Identifier. Example, walmart.",
547
+    //         pbxExtensionID: "PBX Extension Identifier. Example, 5625.",
548
+    //         fqExtensionID: "Fully qualified Extension Identifier. Example, +71 (US) +5625.",
549
+    //         sessionID: "Session Identifier. Example, session-12-34"
550
+    //     },
551
+    //     collectLegacyStats: true, //enables the collection of legacy stats in chrome browser
552
+    //     collectIP: true //enables the collection localIP address
553
+    // },
554
+
533 555
     // Enables sending participants' display names to callstats
534 556
     // enableDisplayNameInStats: false,
535 557
 

+ 1
- 0
react/features/base/config/configWhitelist.js Visa fil

@@ -50,6 +50,7 @@ export default [
50 50
      */
51 51
     'callHandle',
52 52
     'callStatsConfIDNamespace',
53
+    'callStatsConfigParams',
53 54
     'callStatsID',
54 55
     'callStatsSecret',
55 56
 

Laddar…
Avbryt
Spara