@webex/calling 3.10.0 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/module/CallHistory/CallHistory.js +20 -11
  2. package/dist/module/CallSettings/UcmBackendConnector.js +21 -8
  3. package/dist/module/CallSettings/WxCallBackendConnector.js +10 -15
  4. package/dist/module/CallingClient/CallingClient.js +83 -123
  5. package/dist/module/CallingClient/calling/call.js +73 -58
  6. package/dist/module/CallingClient/calling/callManager.js +7 -0
  7. package/dist/module/CallingClient/constants.js +3 -0
  8. package/dist/module/CallingClient/registration/register.js +85 -5
  9. package/dist/module/CallingClient/registration/webWorker.js +2 -2
  10. package/dist/module/CallingClient/registration/webWorkerStr.js +2 -2
  11. package/dist/module/Contacts/ContactsClient.js +19 -25
  12. package/dist/module/Events/impl/index.js +1 -1
  13. package/dist/module/Logger/index.js +2 -2
  14. package/dist/module/Voicemail/BroadworksBackendConnector.js +10 -18
  15. package/dist/module/Voicemail/UcmBackendConnector.js +7 -11
  16. package/dist/module/Voicemail/Voicemail.js +42 -68
  17. package/dist/module/Voicemail/WxCallBackendConnector.js +14 -28
  18. package/dist/module/common/Utils.js +31 -5
  19. package/dist/module/common/constants.js +2 -0
  20. package/dist/module/common/testUtil.js +1 -0
  21. package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
  22. package/dist/types/CallSettings/UcmBackendConnector.d.ts +1 -0
  23. package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -1
  24. package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +1 -1
  25. package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
  26. package/dist/types/CallingClient/calling/call.d.ts +4 -0
  27. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  28. package/dist/types/CallingClient/calling/callManager.d.ts.map +1 -1
  29. package/dist/types/CallingClient/constants.d.ts +3 -0
  30. package/dist/types/CallingClient/constants.d.ts.map +1 -1
  31. package/dist/types/CallingClient/registration/register.d.ts +4 -0
  32. package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
  33. package/dist/types/CallingClient/registration/types.d.ts +6 -0
  34. package/dist/types/CallingClient/registration/types.d.ts.map +1 -1
  35. package/dist/types/CallingClient/registration/webWorkerStr.d.ts +1 -1
  36. package/dist/types/CallingClient/registration/webWorkerStr.d.ts.map +1 -1
  37. package/dist/types/Contacts/ContactsClient.d.ts +1 -0
  38. package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
  39. package/dist/types/Logger/index.d.ts +1 -2
  40. package/dist/types/Logger/index.d.ts.map +1 -1
  41. package/dist/types/SDKConnector/types.d.ts +16 -0
  42. package/dist/types/SDKConnector/types.d.ts.map +1 -1
  43. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +1 -1
  44. package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +1 -1
  45. package/dist/types/Voicemail/Voicemail.d.ts.map +1 -1
  46. package/dist/types/Voicemail/WxCallBackendConnector.d.ts.map +1 -1
  47. package/dist/types/common/Utils.d.ts +1 -1
  48. package/dist/types/common/Utils.d.ts.map +1 -1
  49. package/dist/types/common/constants.d.ts +2 -0
  50. package/dist/types/common/constants.d.ts.map +1 -1
  51. package/dist/types/common/testUtil.d.ts +1 -0
  52. package/dist/types/common/testUtil.d.ts.map +1 -1
  53. package/package.json +4 -4
  54. package/dist/CallHistory/CallHistory.js +0 -584
  55. package/dist/CallHistory/CallHistory.js.map +0 -1
  56. package/dist/CallHistory/CallHistory.test.js +0 -813
  57. package/dist/CallHistory/CallHistory.test.js.map +0 -1
  58. package/dist/CallHistory/callHistoryFixtures.js +0 -650
  59. package/dist/CallHistory/callHistoryFixtures.js.map +0 -1
  60. package/dist/CallHistory/constants.js +0 -38
  61. package/dist/CallHistory/constants.js.map +0 -1
  62. package/dist/CallHistory/types.js +0 -7
  63. package/dist/CallHistory/types.js.map +0 -1
  64. package/dist/CallSettings/CallSettings.js +0 -312
  65. package/dist/CallSettings/CallSettings.js.map +0 -1
  66. package/dist/CallSettings/CallSettings.test.js +0 -122
  67. package/dist/CallSettings/CallSettings.test.js.map +0 -1
  68. package/dist/CallSettings/UcmBackendConnector.js +0 -261
  69. package/dist/CallSettings/UcmBackendConnector.js.map +0 -1
  70. package/dist/CallSettings/UcmBackendConnector.test.js +0 -321
  71. package/dist/CallSettings/UcmBackendConnector.test.js.map +0 -1
  72. package/dist/CallSettings/WxCallBackendConnector.js +0 -604
  73. package/dist/CallSettings/WxCallBackendConnector.js.map +0 -1
  74. package/dist/CallSettings/WxCallBackendConnector.test.js +0 -905
  75. package/dist/CallSettings/WxCallBackendConnector.test.js.map +0 -1
  76. package/dist/CallSettings/constants.js +0 -31
  77. package/dist/CallSettings/constants.js.map +0 -1
  78. package/dist/CallSettings/testFixtures.js +0 -68
  79. package/dist/CallSettings/testFixtures.js.map +0 -1
  80. package/dist/CallSettings/types.js +0 -7
  81. package/dist/CallSettings/types.js.map +0 -1
  82. package/dist/CallingClient/CallingClient.js +0 -1071
  83. package/dist/CallingClient/CallingClient.js.map +0 -1
  84. package/dist/CallingClient/CallingClient.test.js +0 -1289
  85. package/dist/CallingClient/CallingClient.test.js.map +0 -1
  86. package/dist/CallingClient/callRecordFixtures.js +0 -101
  87. package/dist/CallingClient/callRecordFixtures.js.map +0 -1
  88. package/dist/CallingClient/calling/CallerId/index.js +0 -276
  89. package/dist/CallingClient/calling/CallerId/index.js.map +0 -1
  90. package/dist/CallingClient/calling/CallerId/index.test.js +0 -275
  91. package/dist/CallingClient/calling/CallerId/index.test.js.map +0 -1
  92. package/dist/CallingClient/calling/CallerId/types.js +0 -7
  93. package/dist/CallingClient/calling/CallerId/types.js.map +0 -1
  94. package/dist/CallingClient/calling/call.js +0 -3444
  95. package/dist/CallingClient/calling/call.js.map +0 -1
  96. package/dist/CallingClient/calling/call.test.js +0 -3260
  97. package/dist/CallingClient/calling/call.test.js.map +0 -1
  98. package/dist/CallingClient/calling/callManager.js +0 -456
  99. package/dist/CallingClient/calling/callManager.js.map +0 -1
  100. package/dist/CallingClient/calling/callManager.test.js +0 -741
  101. package/dist/CallingClient/calling/callManager.test.js.map +0 -1
  102. package/dist/CallingClient/calling/index.js +0 -30
  103. package/dist/CallingClient/calling/index.js.map +0 -1
  104. package/dist/CallingClient/calling/types.js +0 -74
  105. package/dist/CallingClient/calling/types.js.map +0 -1
  106. package/dist/CallingClient/callingClientFixtures.js +0 -143
  107. package/dist/CallingClient/callingClientFixtures.js.map +0 -1
  108. package/dist/CallingClient/constants.js +0 -237
  109. package/dist/CallingClient/constants.js.map +0 -1
  110. package/dist/CallingClient/line/index.js +0 -349
  111. package/dist/CallingClient/line/index.js.map +0 -1
  112. package/dist/CallingClient/line/line.test.js +0 -327
  113. package/dist/CallingClient/line/line.test.js.map +0 -1
  114. package/dist/CallingClient/line/types.js +0 -21
  115. package/dist/CallingClient/line/types.js.map +0 -1
  116. package/dist/CallingClient/registration/index.js +0 -19
  117. package/dist/CallingClient/registration/index.js.map +0 -1
  118. package/dist/CallingClient/registration/register.js +0 -1538
  119. package/dist/CallingClient/registration/register.js.map +0 -1
  120. package/dist/CallingClient/registration/register.test.js +0 -1537
  121. package/dist/CallingClient/registration/register.test.js.map +0 -1
  122. package/dist/CallingClient/registration/registerFixtures.js +0 -36
  123. package/dist/CallingClient/registration/registerFixtures.js.map +0 -1
  124. package/dist/CallingClient/registration/types.js +0 -7
  125. package/dist/CallingClient/registration/types.js.map +0 -1
  126. package/dist/CallingClient/registration/webWorker.js +0 -130
  127. package/dist/CallingClient/registration/webWorker.js.map +0 -1
  128. package/dist/CallingClient/registration/webWorker.test.js +0 -303
  129. package/dist/CallingClient/registration/webWorker.test.js.map +0 -1
  130. package/dist/CallingClient/registration/webWorkerStr.js +0 -15
  131. package/dist/CallingClient/registration/webWorkerStr.js.map +0 -1
  132. package/dist/CallingClient/types.js +0 -7
  133. package/dist/CallingClient/types.js.map +0 -1
  134. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js +0 -142
  135. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js.map +0 -1
  136. package/dist/Contacts/ContactsClient.js +0 -1215
  137. package/dist/Contacts/ContactsClient.js.map +0 -1
  138. package/dist/Contacts/ContactsClient.test.js +0 -1003
  139. package/dist/Contacts/ContactsClient.test.js.map +0 -1
  140. package/dist/Contacts/constants.js +0 -40
  141. package/dist/Contacts/constants.js.map +0 -1
  142. package/dist/Contacts/contactFixtures.js +0 -430
  143. package/dist/Contacts/contactFixtures.js.map +0 -1
  144. package/dist/Contacts/types.js +0 -43
  145. package/dist/Contacts/types.js.map +0 -1
  146. package/dist/Errors/catalog/CallError.js +0 -92
  147. package/dist/Errors/catalog/CallError.js.map +0 -1
  148. package/dist/Errors/catalog/CallingDeviceError.js +0 -86
  149. package/dist/Errors/catalog/CallingDeviceError.js.map +0 -1
  150. package/dist/Errors/catalog/ExtendedError.js +0 -44
  151. package/dist/Errors/catalog/ExtendedError.js.map +0 -1
  152. package/dist/Errors/catalog/LineError.js +0 -88
  153. package/dist/Errors/catalog/LineError.js.map +0 -1
  154. package/dist/Errors/index.js +0 -28
  155. package/dist/Errors/index.js.map +0 -1
  156. package/dist/Errors/types.js +0 -59
  157. package/dist/Errors/types.js.map +0 -1
  158. package/dist/Events/impl/index.js +0 -81
  159. package/dist/Events/impl/index.js.map +0 -1
  160. package/dist/Events/types.js +0 -107
  161. package/dist/Events/types.js.map +0 -1
  162. package/dist/Logger/index.js +0 -228
  163. package/dist/Logger/index.js.map +0 -1
  164. package/dist/Logger/index.test.js +0 -87
  165. package/dist/Logger/index.test.js.map +0 -1
  166. package/dist/Logger/types.js +0 -34
  167. package/dist/Logger/types.js.map +0 -1
  168. package/dist/Metrics/index.js +0 -535
  169. package/dist/Metrics/index.js.map +0 -1
  170. package/dist/Metrics/index.test.js +0 -463
  171. package/dist/Metrics/index.test.js.map +0 -1
  172. package/dist/Metrics/types.js +0 -64
  173. package/dist/Metrics/types.js.map +0 -1
  174. package/dist/SDKConnector/index.js +0 -103
  175. package/dist/SDKConnector/index.js.map +0 -1
  176. package/dist/SDKConnector/index.test.js +0 -9
  177. package/dist/SDKConnector/index.test.js.map +0 -1
  178. package/dist/SDKConnector/types.js +0 -7
  179. package/dist/SDKConnector/types.js.map +0 -1
  180. package/dist/SDKConnector/utils.js +0 -39
  181. package/dist/SDKConnector/utils.js.map +0 -1
  182. package/dist/SDKConnector/utils.test.js +0 -9
  183. package/dist/SDKConnector/utils.test.js.map +0 -1
  184. package/dist/Voicemail/BroadworksBackendConnector.js +0 -707
  185. package/dist/Voicemail/BroadworksBackendConnector.js.map +0 -1
  186. package/dist/Voicemail/BroadworksBackendConnector.test.js +0 -812
  187. package/dist/Voicemail/BroadworksBackendConnector.test.js.map +0 -1
  188. package/dist/Voicemail/UcmBackendConnector.js +0 -632
  189. package/dist/Voicemail/UcmBackendConnector.js.map +0 -1
  190. package/dist/Voicemail/UcmBackendConnector.test.js +0 -738
  191. package/dist/Voicemail/UcmBackendConnector.test.js.map +0 -1
  192. package/dist/Voicemail/Voicemail.js +0 -500
  193. package/dist/Voicemail/Voicemail.js.map +0 -1
  194. package/dist/Voicemail/Voicemail.test.js +0 -391
  195. package/dist/Voicemail/Voicemail.test.js.map +0 -1
  196. package/dist/Voicemail/WxCallBackendConnector.js +0 -671
  197. package/dist/Voicemail/WxCallBackendConnector.js.map +0 -1
  198. package/dist/Voicemail/WxCallBackendConnector.test.js +0 -1199
  199. package/dist/Voicemail/WxCallBackendConnector.test.js.map +0 -1
  200. package/dist/Voicemail/constants.js +0 -61
  201. package/dist/Voicemail/constants.js.map +0 -1
  202. package/dist/Voicemail/types.js +0 -7
  203. package/dist/Voicemail/types.js.map +0 -1
  204. package/dist/Voicemail/voicemailFixture.js +0 -524
  205. package/dist/Voicemail/voicemailFixture.js.map +0 -1
  206. package/dist/api.js +0 -157
  207. package/dist/api.js.map +0 -1
  208. package/dist/common/Utils.js +0 -1451
  209. package/dist/common/Utils.js.map +0 -1
  210. package/dist/common/Utils.test.js +0 -1744
  211. package/dist/common/Utils.test.js.map +0 -1
  212. package/dist/common/constants.js +0 -60
  213. package/dist/common/constants.js.map +0 -1
  214. package/dist/common/index.js +0 -19
  215. package/dist/common/index.js.map +0 -1
  216. package/dist/common/testUtil.js +0 -982
  217. package/dist/common/testUtil.js.map +0 -1
  218. package/dist/common/types.js +0 -75
  219. package/dist/common/types.js.map +0 -1
  220. package/dist/index.js +0 -321
  221. package/dist/index.js.map +0 -1
@@ -1,982 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
- var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
5
- _Object$defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.getSampleScimResponse = exports.getSampleRawAndParsedMediaStats = exports.getSamplePeopleListResponse = exports.getSampleMinimumScimResponse = exports.getMockRequestTemplate = exports.getMockDeviceInfo = exports.getMobiusDiscoveryResponse = exports.flushPromises = void 0;
9
- exports.getTestUtilsWebex = getTestUtilsWebex;
10
- exports.registration = exports.mockCallingClient = exports.mediaConnection = void 0;
11
- var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
12
- var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
13
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/toConsumableArray"));
14
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
15
- var _platform = _interopRequireDefault(require("platform"));
16
- /* eslint-disable valid-jsdoc */
17
- /*
18
- This file acts as a utility to create a mock Webex object that can be imported
19
- into UT. As we can see, the methods have been replaced with mock jest.fn().
20
- In our respective UTs, we can specify the return values of these functions
21
- using webex.request.mockReturnValue() or webex.request.mockReturnValueOnce().
22
- */
23
-
24
- var MediaSDKMock = jest.createMockFromModule('@webex/internal-media-core');
25
-
26
- /**
27
- * Returns a fresh copy of the webex object per call.
28
- */
29
- function getTestUtilsWebex() {
30
- return {
31
- // top level primitives/funcs
32
- version: '1.1.1',
33
- config: {
34
- fedramp: false
35
- },
36
- canAuthorize: true,
37
- credentials: {
38
- getUserToken: jest.fn()
39
- },
40
- ready: true,
41
- request: jest.fn(),
42
- // internal plugins
43
- internal: {
44
- metrics: {
45
- submitClientMetrics: jest.fn()
46
- },
47
- mercury: {
48
- on: jest.fn(),
49
- off: jest.fn(),
50
- connected: true,
51
- connecting: false
52
- },
53
- calendar: null,
54
- device: {
55
- url: 'https://wdm-intb.ciscospark.com/wdm/api/v1/devices/c5ae3b86-1bb7-40f1-a6a9-c296ee7e61d5',
56
- deviceId: 'c5ae3b86-1bb7-40f1-a6a9-c296ee7e61d5',
57
- userId: '8a67806f-fc4d-446b-a131-31e71ea5b0e9',
58
- orgId: '1704d30d-a131-4bc7-9449-948487643793',
59
- version: '1',
60
- callingBehavior: 'NATIVE_WEBEX_TEAMS_CALLING',
61
- features: {
62
- entitlement: {
63
- models: [{
64
- _values: {
65
- key: 'bc-sp-standard'
66
- }
67
- }]
68
- }
69
- }
70
- },
71
- encryption: {
72
- decryptText: jest.fn(),
73
- encryptText: jest.fn(),
74
- kms: {
75
- createUnboundKeys: jest.fn(),
76
- createResource: jest.fn(),
77
- bindKey: jest.fn()
78
- }
79
- },
80
- presence: jest.fn(),
81
- support: {
82
- submitLogs: jest.fn()
83
- },
84
- services: {
85
- _hostCatalog: {},
86
- _serviceUrls: {
87
- mobius: 'https://mobius.aintgen-a-1.int.infra.webex.com/api/v1',
88
- identity: 'https://identity-b-us.webex.com',
89
- janus: 'https://janus-intb.ciscospark.com/janus/api/v1',
90
- wdm: 'https://wdm-a.wbx2.com/wdm/api/v1',
91
- broadworksIdpProxy: 'https://broadworks-idp-proxy-a.wbx2.com/broadworks-idp-proxy/api/v1',
92
- hydra: 'https://hydra-a.wbx2.com/v1/',
93
- mercuryApi: 'https://mercury-api-intb.ciscospark.com/v1',
94
- 'ucmgmt-gateway': 'https://gw.telemetry.int-ucmgmt.cisco.com',
95
- contactsService: 'https://contacts-service-a.wbx2.com/contact/api/v1'
96
- },
97
- fetchClientRegionInfo: jest.fn()
98
- }
99
- },
100
- // public plugins
101
- logger: {
102
- log: jest.fn(),
103
- error: jest.fn(),
104
- warn: jest.fn(),
105
- trace: jest.fn(),
106
- info: jest.fn(),
107
- debug: jest.fn()
108
- },
109
- messages: null,
110
- memberships: null,
111
- people: {
112
- list: jest.fn()
113
- },
114
- rooms: null,
115
- teams: null
116
- };
117
- }
118
- var registration = exports.registration = {
119
- triggerRegistration: function triggerRegistration() {
120
- return jest.fn();
121
- }
122
- };
123
- var mediaConnection = exports.mediaConnection = new MediaSDKMock.RoapMediaConnection({}, {
124
- localTracks: {},
125
- direction: {
126
- audio: 'sendrecv',
127
- video: 'sendrecv',
128
- screenShareVideo: 'sendrecv'
129
- }
130
- }, '');
131
-
132
- /**
133
- * @param count - Number of Promises to flush.
134
- */
135
- var flushPromises = exports.flushPromises = /*#__PURE__*/function () {
136
- var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(count) {
137
- return _regenerator.default.wrap(function _callee$(_context) {
138
- while (1) switch (_context.prev = _context.next) {
139
- case 0:
140
- _context.next = 2;
141
- return _promise.default.all((0, _toConsumableArray2.default)(Array(count)).map(function () {
142
- return _promise.default.resolve();
143
- }));
144
- case 2:
145
- case "end":
146
- return _context.stop();
147
- }
148
- }, _callee);
149
- }));
150
- return function flushPromises(_x) {
151
- return _ref.apply(this, arguments);
152
- };
153
- }();
154
- var mockCallingClient = exports.mockCallingClient = {
155
- emit: jest.fn(),
156
- register: jest.fn(),
157
- on: jest.fn(),
158
- off: jest.fn()
159
- };
160
- var getMockRequestTemplate = exports.getMockRequestTemplate = function getMockRequestTemplate() {
161
- return {
162
- headers: {
163
- 'cisco-device-url': 'https://wdm-intb.ciscospark.com/wdm/api/v1/devices/c5ae3b86-1bb7-40f1-a6a9-c296ee7e61d5',
164
- 'spark-user-agent': 'webex-calling/beta'
165
- },
166
- service: 'mobius'
167
- };
168
- };
169
- var getMobiusDiscoveryResponse = exports.getMobiusDiscoveryResponse = function getMobiusDiscoveryResponse() {
170
- return {
171
- primary: {
172
- region: 'US-EAST',
173
- uris: ['https://mobius-dfw.webex.com/api/v1']
174
- },
175
- backup: {
176
- region: 'US-WEST',
177
- uris: ['https://mobius-sjc.webex.com/api/v1']
178
- }
179
- };
180
- };
181
-
182
- /**
183
- * Returns a mocked deviceInfo object.
184
- */
185
- var getMockDeviceInfo = exports.getMockDeviceInfo = function getMockDeviceInfo() {
186
- return {
187
- device: {
188
- deviceId: 'beb3c025-8c6a-3c44-8f3d-9b7d65363ac1',
189
- uri: 'https://mobius.aintgen-a-1.int.infra.webex.com/api/v1/calling/web/devices/beb3c025-8c6a-3c44-8f3d-9b7d65363ac1',
190
- status: 'active',
191
- lastSeen: '2022-04-05T05:08:46Z',
192
- addresses: ['sip:pbs9p4cbr9_G6JJNI5DD5NP@64941297.int10.bcld.webex.com'],
193
- clientDeviceUri: 'https://clientDeviceUrl'
194
- }
195
- };
196
- };
197
-
198
- /**
199
- * Returns a sample SCIM response object.
200
- */
201
- var getSampleScimResponse = exports.getSampleScimResponse = function getSampleScimResponse() {
202
- var sampleAvatar = 'https://avatar-int-us-east-1.webexcontent.com/Avtr~V1~1704d30d-a131-4bc7-9449-948487643793/V1~bf911e86a1561896d7d0053b46a8d0c9ed82a7bc434a1f84621c2c45cc825f37~3720694b1e4340818a3d12d70eb2b6e1~80';
203
- return {
204
- totalResults: '1',
205
- itemsPerPage: '1',
206
- startIndex: '1',
207
- schemas: ['urn:scim:schemas:core:1.0', 'urn:scim:schemas:extension:cisco:commonidentity:1.0'],
208
- Resources: [{
209
- userName: 'atlas.test.wxcwebrtc+user8@gmail.com',
210
- emails: [{
211
- primary: true,
212
- type: 'work',
213
- value: 'atlas.test.wxcwebrtc+user8@gmail.com'
214
- }],
215
- name: {
216
- givenName: 'Cathy',
217
- familyName: 'James'
218
- },
219
- phoneNumbers: [{
220
- primary: false,
221
- type: 'personal',
222
- value: '5009'
223
- }, {
224
- primary: true,
225
- type: 'work',
226
- value: '5008'
227
- }],
228
- entitlements: ['basic-meeting', 'basic-message', 'bc-sp-standard', 'screen-share', 'spark', 'spark-test-account', 'squared-call-initiation', 'webex-squared'],
229
- cisSyncSource: 'SCIM',
230
- photos: [{
231
- type: 'photo',
232
- value: sampleAvatar
233
- }, {
234
- type: 'thumbnail',
235
- value: sampleAvatar
236
- }],
237
- id: '652fe0c7-05ce-4acd-8bda-9a080830187f',
238
- meta: {
239
- created: '2022-03-16T16:13:53.847Z',
240
- lastModified: '2022-05-31T14:39:12.782Z',
241
- lastLoginTime: '2022-05-31T14:39:12.780Z',
242
- version: 'W/"66025591113"',
243
- location: 'https://identitybts.webex.com/identity/scim/1704d30d-a131-4bc7-9449-948487643793/v1/Users/652fe0c7-05ce-4acd-8bda-9a080830187f',
244
- organizationID: '1704d30d-a131-4bc7-9449-948487643793',
245
- creator: '97fe25e3-d3e8-400e-856b-5b0cd5b0c790',
246
- modifier: '8c7abf2f-0c8e-49cf-b8e4-693d4ec7daee'
247
- },
248
- displayName: 'Cathy',
249
- active: true,
250
- licenseID: ['BCSTD_8c81f40c-e848-484e-8ca8-0fb6dabc75a5'],
251
- userSettings: ['{"spark.signUpDate":"1648547902173"}', '{"user-origin":"admin-invited"}'],
252
- sipAddresses: [{
253
- type: 'cloud-calling',
254
- value: 'atlas.test.wxcwebrtc+user8@webrtcmobius.call.wbx2.com',
255
- primary: true
256
- }],
257
- isTeamsOnJabberEnabled: false,
258
- isUCCallOnJabberEnabled: false,
259
- userType: 'user',
260
- mfaEnabled: false,
261
- teamsClusterId: 'urn:TEAM:us-east-1_int13'
262
- }]
263
- };
264
- };
265
- var getSampleMinimumScimResponse = exports.getSampleMinimumScimResponse = function getSampleMinimumScimResponse() {
266
- return {
267
- totalResults: '1',
268
- itemsPerPage: '1',
269
- startIndex: '1',
270
- schemas: ['urn:scim:schemas:core:1.0'],
271
- Resources: [{
272
- userName: 'atlas.test.wxcwebrtc+user8@gmail.com',
273
- id: 'userExternalId',
274
- meta: {
275
- created: '2022-03-16T16:13:53.847Z',
276
- lastModified: '2022-05-31T14:39:12.782Z',
277
- lastLoginTime: '2022-05-31T14:39:12.780Z',
278
- version: 'W/"66025591113"',
279
- location: 'https://identitybts.webex.com/identity/scim/1704d30d-a131-4bc7-9449-948487643793/v1/Users/652fe0c7-05ce-4acd-8bda-9a080830187f',
280
- organizationID: '1704d30d-a131-4bc7-9449-948487643793',
281
- creator: '97fe25e3-d3e8-400e-856b-5b0cd5b0c790',
282
- modifier: '8c7abf2f-0c8e-49cf-b8e4-693d4ec7daee'
283
- }
284
- }]
285
- };
286
- };
287
-
288
- /**
289
- * Returns a sample people list response object.
290
- */
291
- var getSamplePeopleListResponse = exports.getSamplePeopleListResponse = function getSamplePeopleListResponse() {
292
- // cSpell:disable
293
- return {
294
- notFoundIds: null,
295
- items: [{
296
- id: 'Y2lzY29zcGFyazovL3VzL1BFT1BMRS9iODUzYmJkMS0xMTM2LTRkMjUtOTM4ZC0wYzM3NTMxYjEyMzM',
297
- emails: ['atlas.test.wxcwebrtc+user2@gmail.com'],
298
- phoneNumbers: [{
299
- type: 'work',
300
- value: '+12142865899'
301
- }, {
302
- type: 'work',
303
- value: '+12142865890'
304
- }],
305
- displayName: 'Krishna Kumar Rai',
306
- nickName: 'Krishna Kumar',
307
- firstName: 'Krishna Kumar',
308
- lastName: 'Rai',
309
- avatar: 'https://avatar-int-us-east-1.webexcontent.com/Avtr~V1~1704d30d-a131-4bc7-9449-948487643793/V1~63bb91536457f9b7d88739ae7cf78515800e468e0a4b59491b9c85b174c26eec~f10e91b5c0c0465ca8098f075ddec0b8~1600',
310
- orgId: 'Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi8xNzA0ZDMwZC1hMTMxLTRiYzctOTQ0OS05NDg0ODc2NDM3OTM',
311
- created: '2022-03-16T14:07:21.266Z',
312
- lastModified: '2023-01-16T11:10:40.693Z',
313
- lastActivity: '2023-01-27T08:21:06.988Z',
314
- status: 'inactive',
315
- type: 'person'
316
- }]
317
- };
318
- // cSpell:enable
319
- };
320
-
321
- /**
322
- * Returns webrtc stats in raw and parsed format
323
- * statsWithVoOneWayDelayAndNw: raw & parsed,
324
- * statsWithoutVoOneWayDelayAndNw: raw & parsed.
325
- */
326
- var getSampleRawAndParsedMediaStats = exports.getSampleRawAndParsedMediaStats = function getSampleRawAndParsedMediaStats() {
327
- return {
328
- statsWithVoOneWayDelayAndNw: {
329
- raw: [{
330
- id: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
331
- timestamp: 1680187470045.045,
332
- type: 'certificate',
333
- fingerprint: '83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
334
- fingerprintAlgorithm: 'sha-256',
335
- base64Certificate: 'MIIBFTCBvKADAgECAgg7QZ5hqSYvvjAKBggqhkjOPQQDAjARMQ8wDQYDVQQDDAZXZWJSVEMwHhcNMjMwMzI5MTQ0NDAzWhcNMjMwNDI5MTQ0NDAzWjARMQ8wDQYDVQQDDAZXZWJSVEMwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmOwLsh05ty2dg9Z4lMP0eGKOEXiYK0aD7R6t9ZhmQGsnXOoJo6uI9PPep6KtwXu8gmsNgpWCFXchYqCXUc9XLMAoGCCqGSM49BAMCA0gAMEUCIAzhwwwBNgeoGDdmuP+E6bxa+jPCpUNxAojCvva483GQAiEAm1sV7ObKt0SWAxzYk4hBw3anywSTUb/mRmrqpctykPU='
336
- }, {
337
- id: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
338
- timestamp: 1680187470045.045,
339
- type: 'certificate',
340
- fingerprint: 'E6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
341
- fingerprintAlgorithm: 'sha-1',
342
- base64Certificate: 'MIIBrTCCAVMCAQEwCQYHKoZIzj0EATBjMQswCQYDVQQGEwJYWDEcMBoGA1UECgwTRGVmYXVsdCBDb21wYW55IEx0ZDE2MDQGA1UEAwwtbWVkaWEtcG9vbDAud2Rmd3d4Yy1pbnQtMi5pbnQuaW5mcmEud2ViZXguY29tMB4XDTIzMDMzMDEyMDg1M1oXDTMzMDMyNzEyMDg1M1owYzELMAkGA1UEBhMCWFgxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQxNjA0BgNVBAMMLW1lZGlhLXBvb2wwLndkZnd3eGMtaW50LTIuaW50LmluZnJhLndlYmV4LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLxQbeY82wxCshXKWPfwPAD3aDF2oA5yvHnXAWBGHSO+yIqyEb5gOpoTgDNNrWerEQmjZQ0FeFAWv062KTS9FOIwCQYHKoZIzj0EAQNJADBGAiEA23zp5TJYq5OXFfOEc3ds0LHDyt7KQCLTItBJgXKik9oCIQCCA0qyNKx1v+AOtnkgDbBFjVArLF/5Sd3TIXMgc4VsnA=='
343
- }, {
344
- id: 'CIT01_111_minPtime=10;useInbandFec=1',
345
- timestamp: 1680187470045.045,
346
- type: 'codec',
347
- transportId: 'T01',
348
- payloadType: 111,
349
- mimeType: 'audio/opus',
350
- clockRate: 48000,
351
- channels: 2,
352
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
353
- }, {
354
- id: 'COT01_111_minPtime=10;useInbandFec=1',
355
- timestamp: 1680187470045.045,
356
- type: 'codec',
357
- transportId: 'T01',
358
- payloadType: 111,
359
- mimeType: 'audio/opus',
360
- clockRate: 48000,
361
- channels: 2,
362
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
363
- }, {
364
- id: 'RTCIceCandidatePair_CPg7Va+n9f_xvQ5iqnX',
365
- timestamp: 1680187470045.045,
366
- type: 'candidate-pair',
367
- transportId: 'T01',
368
- localCandidateId: 'RTCIceCandidate_Ig7Va+n9f',
369
- remoteCandidateId: 'IxvQ5iqnX',
370
- state: 'succeeded',
371
- priority: 9114756780671369000,
372
- nominated: true,
373
- writable: true,
374
- packetsSent: 1036,
375
- packetsReceived: 1015,
376
- bytesSent: 103064,
377
- bytesReceived: 100460,
378
- totalRoundTripTime: 3.611,
379
- currentRoundTripTime: 0.303,
380
- availableOutgoingBitrate: 300000,
381
- requestsReceived: 0,
382
- requestsSent: 12,
383
- responsesReceived: 12,
384
- responsesSent: 0,
385
- consentRequestsSent: 9,
386
- packetsDiscardedOnSend: 0,
387
- bytesDiscardedOnSend: 0
388
- }, {
389
- id: 'DEPRECATED_S_default',
390
- timestamp: 1680187470045.045,
391
- type: 'stream',
392
- streamIdentifier: 'default',
393
- trackIds: ['DEPRECATED_TI2']
394
- }, {
395
- id: 'DEPRECATED_TI2',
396
- timestamp: 1680187470045.045,
397
- type: 'track',
398
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
399
- remoteSource: true,
400
- ended: false,
401
- detached: false,
402
- kind: 'audio',
403
- jitterBufferDelay: 84508.8,
404
- jitterBufferEmittedCount: 958080,
405
- audioLevel: 0.004272591326639607,
406
- totalAudioEnergy: 0.6976435552354842,
407
- totalSamplesReceived: 987200,
408
- totalSamplesDuration: 21.480000000000558,
409
- concealedSamples: 27623,
410
- silentConcealedSamples: 21400,
411
- concealmentEvents: 8,
412
- insertedSamplesForDeceleration: 3844,
413
- removedSamplesForAcceleration: 2129
414
- }, {
415
- id: 'DEPRECATED_TO1',
416
- timestamp: 1680187470045.045,
417
- type: 'track',
418
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
419
- mediaSourceId: 'SA1',
420
- remoteSource: false,
421
- ended: false,
422
- detached: false,
423
- kind: 'audio',
424
- echoReturnLoss: 13.656129837036133,
425
- echoReturnLossEnhancement: 7.137247085571289
426
- }, {
427
- id: 'DEPRECATED_VO1',
428
- timestamp: 1680187470045.045,
429
- type: 'local-candidate',
430
- transportId: 'T01',
431
- isRemote: false,
432
- networkType: 'vpn',
433
- ip: '10.227.211.139',
434
- address: '10.227.211.139',
435
- port: 9,
436
- protocol: 'tcp',
437
- candidateType: 'host',
438
- priority: 1518214911,
439
- foundation: '2654339674',
440
- usernameFragment: 'V+QJ',
441
- tcpType: 'active'
442
- }, {
443
- id: 'IKm2fnMou',
444
- timestamp: 1680187470045.045,
445
- type: 'local-candidate',
446
- transportId: 'T01',
447
- isRemote: false,
448
- networkType: 'wifi',
449
- ip: '192.168.1.65',
450
- address: '192.168.1.65',
451
- port: 9,
452
- protocol: 'tcp',
453
- candidateType: 'host',
454
- priority: 1518280447,
455
- foundation: '1437462698',
456
- usernameFragment: 'V+QJ',
457
- tcpType: 'active'
458
- }, {
459
- id: 'IT01A1746541880',
460
- timestamp: 1680187470045.045,
461
- type: 'inbound-rtp',
462
- ssrc: 1746541880,
463
- kind: 'audio',
464
- trackId: 'DEPRECATED_TI2',
465
- transportId: 'T01',
466
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
467
- mediaType: 'audio',
468
- jitter: 0.008,
469
- packetsLost: 3,
470
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
471
- mid: '0',
472
- remoteId: 'ROA1746541880',
473
- packetsReceived: 1003,
474
- packetsDiscarded: 0,
475
- fecPacketsReceived: 0,
476
- fecPacketsDiscarded: 0,
477
- bytesReceived: 76880,
478
- headerBytesReceived: 12036,
479
- lastPacketReceivedTimestamp: 1680187470035,
480
- jitterBufferDelay: 84508.8,
481
- jitterBufferTargetDelay: 92793.6,
482
- jitterBufferMinimumDelay: 92640,
483
- jitterBufferEmittedCount: 958080,
484
- totalSamplesReceived: 987200,
485
- concealedSamples: 27623,
486
- silentConcealedSamples: 21400,
487
- concealmentEvents: 8,
488
- insertedSamplesForDeceleration: 3844,
489
- removedSamplesForAcceleration: 2129,
490
- audioLevel: 0.004272591326639607,
491
- totalAudioEnergy: 0.6976435552354842,
492
- totalSamplesDuration: 21.480000000000558
493
- }, {
494
- id: 'IUzJLjNLE',
495
- timestamp: 1680187470045.045,
496
- type: 'local-candidate',
497
- transportId: 'T01',
498
- isRemote: false,
499
- networkType: 'wifi',
500
- ip: '192.168.1.65',
501
- address: '192.168.1.65',
502
- port: 58574,
503
- protocol: 'udp',
504
- candidateType: 'host',
505
- priority: 2122260223,
506
- foundation: '727847474',
507
- usernameFragment: 'V+QJ'
508
- }, {
509
- id: 'RTCIceCandidate_Ig7Va+n9f',
510
- timestamp: 1680187470045.045,
511
- type: 'local-candidate',
512
- transportId: 'T01',
513
- isRemote: false,
514
- networkType: 'vpn',
515
- ip: '10.227.211.139',
516
- address: '10.227.211.139',
517
- port: 64898,
518
- protocol: 'udp',
519
- candidateType: 'host',
520
- priority: 2122194687,
521
- foundation: '3774472386',
522
- usernameFragment: 'V+QJ'
523
- }, {
524
- id: 'IxvQ5iqnX',
525
- timestamp: 1680187470045.045,
526
- type: 'remote-candidate',
527
- transportId: 'T01',
528
- isRemote: true,
529
- ip: '207.182.171.180',
530
- address: '207.182.171.180',
531
- port: 19608,
532
- protocol: 'udp',
533
- candidateType: 'host',
534
- priority: 2130706431,
535
- foundation: 'mse',
536
- usernameFragment: 'S3cv'
537
- }, {
538
- id: 'OT01A2728789632',
539
- timestamp: 1680187470045.045,
540
- type: 'outbound-rtp',
541
- ssrc: 2728789632,
542
- kind: 'audio',
543
- trackId: 'DEPRECATED_TO1',
544
- transportId: 'T01',
545
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
546
- mediaType: 'audio',
547
- mediaSourceId: 'SA1',
548
- remoteId: 'RIA2728789632',
549
- mid: '0',
550
- packetsSent: 1026,
551
- retransmittedPacketsSent: 0,
552
- bytesSent: 79294,
553
- headerBytesSent: 12312,
554
- retransmittedBytesSent: 0,
555
- targetBitrate: 32000,
556
- nackCount: 0,
557
- active: true
558
- }, {
559
- id: 'P',
560
- timestamp: 1680187470045.045,
561
- type: 'peer-connection',
562
- dataChannelsOpened: 0,
563
- dataChannelsClosed: 0
564
- }, {
565
- id: 'RIA2728789632',
566
- timestamp: 1680187469719,
567
- type: 'remote-inbound-rtp',
568
- ssrc: 2728789632,
569
- kind: 'audio',
570
- transportId: 'T01',
571
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
572
- jitter: 0.0055625,
573
- packetsLost: 0,
574
- localId: 'OT01A2728789632',
575
- roundTripTime: 0.665,
576
- fractionLost: 0,
577
- totalRoundTripTime: 2.509,
578
- roundTripTimeMeasurements: 4
579
- }, {
580
- id: 'ROA1746541880',
581
- timestamp: 1680187467829,
582
- type: 'remote-outbound-rtp',
583
- ssrc: 1746541880,
584
- kind: 'audio',
585
- transportId: 'T01',
586
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
587
- packetsSent: 895,
588
- bytesSent: 68669,
589
- localId: 'IT01A1746541880',
590
- remoteTimestamp: 1680187467378,
591
- reportsSent: 5,
592
- roundTripTimeMeasurements: 0,
593
- totalRoundTripTime: 0
594
- }, {
595
- id: 'SA1',
596
- timestamp: 1680187470045.045,
597
- type: 'media-source',
598
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
599
- kind: 'audio',
600
- audioLevel: 0.006469924008911405,
601
- totalAudioEnergy: 0.7681144799128602,
602
- totalSamplesDuration: 26.650000000001366,
603
- echoReturnLoss: 13.656129837036133,
604
- echoReturnLossEnhancement: 7.137247085571289
605
- }, {
606
- id: 'T01',
607
- timestamp: 1680187470045.045,
608
- type: 'transport',
609
- bytesSent: 103064,
610
- packetsSent: 1036,
611
- bytesReceived: 100460,
612
- packetsReceived: 1015,
613
- dtlsState: 'connected',
614
- selectedCandidatePairId: 'RTCIceCandidatePair_CPg7Va+n9f_xvQ5iqnX',
615
- localCertificateId: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
616
- remoteCertificateId: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
617
- tlsVersion: 'tls1.2',
618
- dtlsCipher: 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256',
619
- dtlsRole: 'client',
620
- srtpCipher: 'AES_CM_128_HMAC_SHA1_80',
621
- selectedCandidatePairChanges: 1,
622
- iceRole: 'controlling',
623
- iceLocalUsernameFragment: 'V+QJ',
624
- iceState: 'connected'
625
- }],
626
- parsed: {
627
- 'rtp-rxstat': {
628
- LostPkt: 3,
629
- Pkt: 1003,
630
- LatePkt: 0,
631
- Oct: 76880,
632
- Dur: 26.650000000001366,
633
- AvgJit: 0.08820641282565131,
634
- VQMetrics: {
635
- maxJitter: 0,
636
- VoPktSizeMs: 20,
637
- VoOneWayDelayMs: 0.313625,
638
- hwType: "".concat(_platform.default.os, "/").concat(_platform.default.name, "-").concat(_platform.default.version),
639
- networkType: 'vpn',
640
- VoRxCodec: 'opus'
641
- }
642
- },
643
- 'rtp-txstat': {
644
- Pkt: 1026,
645
- Oct: 79294,
646
- Dur: 26.650000000001366,
647
- VQMetrics: {
648
- VoTxCodec: 'opus',
649
- rtpBitRate: 32000
650
- }
651
- }
652
- }
653
- },
654
- statsWithoutVoOneWayDelayAndNw: {
655
- raw: [{
656
- id: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
657
- timestamp: 1680187470045.045,
658
- type: 'certificate',
659
- fingerprint: '83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
660
- fingerprintAlgorithm: 'sha-256',
661
- base64Certificate: 'MIIBFTCBvKADAgECAgg7QZ5hqSYvvjAKBggqhkjOPQQDAjARMQ8wDQYDVQQDDAZXZWJSVEMwHhcNMjMwMzI5MTQ0NDAzWhcNMjMwNDI5MTQ0NDAzWjARMQ8wDQYDVQQDDAZXZWJSVEMwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmOwLsh05ty2dg9Z4lMP0eGKOEXiYK0aD7R6t9ZhmQGsnXOoJo6uI9PPep6KtwXu8gmsNgpWCFXchYqCXUc9XLMAoGCCqGSM49BAMCA0gAMEUCIAzhwwwBNgeoGDdmuP+E6bxa+jPCpUNxAojCvva483GQAiEAm1sV7ObKt0SWAxzYk4hBw3anywSTUb/mRmrqpctykPU='
662
- }, {
663
- id: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
664
- timestamp: 1680187470045.045,
665
- type: 'certificate',
666
- fingerprint: 'E6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
667
- fingerprintAlgorithm: 'sha-1',
668
- base64Certificate: 'MIIBrTCCAVMCAQEwCQYHKoZIzj0EATBjMQswCQYDVQQGEwJYWDEcMBoGA1UECgwTRGVmYXVsdCBDb21wYW55IEx0ZDE2MDQGA1UEAwwtbWVkaWEtcG9vbDAud2Rmd3d4Yy1pbnQtMi5pbnQuaW5mcmEud2ViZXguY29tMB4XDTIzMDMzMDEyMDg1M1oXDTMzMDMyNzEyMDg1M1owYzELMAkGA1UEBhMCWFgxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQxNjA0BgNVBAMMLW1lZGlhLXBvb2wwLndkZnd3eGMtaW50LTIuaW50LmluZnJhLndlYmV4LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLxQbeY82wxCshXKWPfwPAD3aDF2oA5yvHnXAWBGHSO+yIqyEb5gOpoTgDNNrWerEQmjZQ0FeFAWv062KTS9FOIwCQYHKoZIzj0EAQNJADBGAiEA23zp5TJYq5OXFfOEc3ds0LHDyt7KQCLTItBJgXKik9oCIQCCA0qyNKx1v+AOtnkgDbBFjVArLF/5Sd3TIXMgc4VsnA=='
669
- }, {
670
- id: 'CIT01_111_minPtime=10;useInbandFec=1',
671
- timestamp: 1680187470045.045,
672
- type: 'codec',
673
- transportId: 'T01',
674
- payloadType: 111,
675
- mimeType: 'audio/opus',
676
- clockRate: 48000,
677
- channels: 2,
678
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
679
- }, {
680
- id: 'COT01_111_minPtime=10;useInbandFec=1',
681
- timestamp: 1680187470045.045,
682
- type: 'codec',
683
- transportId: 'T01',
684
- payloadType: 111,
685
- mimeType: 'audio/opus',
686
- clockRate: 48000,
687
- channels: 2,
688
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
689
- }, {
690
- id: 'CPg7Va+n9f_xvQ5iqnX',
691
- timestamp: 1680187470045.045,
692
- type: 'candidate-pair',
693
- transportId: 'T01',
694
- localCandidateId: 'Ig7Va+n9f',
695
- remoteCandidateId: 'IxvQ5iqnX',
696
- state: 'succeeded',
697
- priority: 9114756780671369000,
698
- nominated: true,
699
- writable: true,
700
- packetsSent: 1036,
701
- packetsReceived: 1015,
702
- bytesSent: 103064,
703
- bytesReceived: 100460,
704
- totalRoundTripTime: 3.611,
705
- currentRoundTripTime: 0.303,
706
- availableOutgoingBitrate: 300000,
707
- requestsReceived: 0,
708
- requestsSent: 12,
709
- responsesReceived: 12,
710
- responsesSent: 0,
711
- consentRequestsSent: 9,
712
- packetsDiscardedOnSend: 0,
713
- bytesDiscardedOnSend: 0
714
- }, {
715
- id: 'DEPRECATED_S_default',
716
- timestamp: 1680187470045.045,
717
- type: 'stream',
718
- streamIdentifier: 'default',
719
- trackIds: ['DEPRECATED_TI2']
720
- }, {
721
- id: 'DEPRECATED_TI2',
722
- timestamp: 1680187470045.045,
723
- type: 'track',
724
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
725
- remoteSource: true,
726
- ended: false,
727
- detached: false,
728
- kind: 'audio',
729
- jitterBufferDelay: 84508.8,
730
- jitterBufferEmittedCount: 958080,
731
- audioLevel: 0.004272591326639607,
732
- totalAudioEnergy: 0.6976435552354842,
733
- totalSamplesReceived: 987200,
734
- totalSamplesDuration: 21.480000000000558,
735
- concealedSamples: 27623,
736
- silentConcealedSamples: 21400,
737
- concealmentEvents: 8,
738
- insertedSamplesForDeceleration: 3844,
739
- removedSamplesForAcceleration: 2129
740
- }, {
741
- id: 'DEPRECATED_TO1',
742
- timestamp: 1680187470045.045,
743
- type: 'track',
744
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
745
- mediaSourceId: 'SA1',
746
- remoteSource: false,
747
- ended: false,
748
- detached: false,
749
- kind: 'audio',
750
- echoReturnLoss: 13.656129837036133,
751
- echoReturnLossEnhancement: 7.137247085571289
752
- }, {
753
- id: 'DEPRECATED_VO1',
754
- timestamp: 1680187470045.045,
755
- type: 'local-candidate',
756
- transportId: 'T01',
757
- isRemote: false,
758
- networkType: 'vpn',
759
- ip: '10.227.211.139',
760
- address: '10.227.211.139',
761
- port: 9,
762
- protocol: 'tcp',
763
- candidateType: 'host',
764
- priority: 1518214911,
765
- foundation: '2654339674',
766
- usernameFragment: 'V+QJ',
767
- tcpType: 'active'
768
- }, {
769
- id: 'IKm2fnMou',
770
- timestamp: 1680187470045.045,
771
- type: 'local-candidate',
772
- transportId: 'T01',
773
- isRemote: false,
774
- networkType: 'wifi',
775
- ip: '192.168.1.65',
776
- address: '192.168.1.65',
777
- port: 9,
778
- protocol: 'tcp',
779
- candidateType: 'host',
780
- priority: 1518280447,
781
- foundation: '1437462698',
782
- usernameFragment: 'V+QJ',
783
- tcpType: 'active'
784
- }, {
785
- id: 'IT01A1746541880',
786
- timestamp: 1680187470045.045,
787
- type: 'inbound-rtp',
788
- ssrc: 1746541880,
789
- kind: 'audio',
790
- trackId: 'DEPRECATED_TI2',
791
- transportId: 'T01',
792
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
793
- mediaType: 'audio',
794
- jitter: 0.008,
795
- packetsLost: 3,
796
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
797
- mid: '0',
798
- remoteId: 'ROA1746541880',
799
- packetsReceived: 1003,
800
- packetsDiscarded: 0,
801
- fecPacketsReceived: 0,
802
- fecPacketsDiscarded: 0,
803
- bytesReceived: 76880,
804
- headerBytesReceived: 12036,
805
- lastPacketReceivedTimestamp: 1680187470035,
806
- jitterBufferDelay: 84508.8,
807
- jitterBufferTargetDelay: 92793.6,
808
- jitterBufferMinimumDelay: 92640,
809
- jitterBufferEmittedCount: 958080,
810
- totalSamplesReceived: 987200,
811
- concealedSamples: 27623,
812
- silentConcealedSamples: 21400,
813
- concealmentEvents: 8,
814
- insertedSamplesForDeceleration: 3844,
815
- removedSamplesForAcceleration: 2129,
816
- audioLevel: 0.004272591326639607,
817
- totalAudioEnergy: 0.6976435552354842,
818
- totalSamplesDuration: 21.480000000000558
819
- }, {
820
- id: 'IUzJLjNLE',
821
- timestamp: 1680187470045.045,
822
- type: 'local-candidate',
823
- transportId: 'T01',
824
- isRemote: false,
825
- networkType: 'wifi',
826
- ip: '192.168.1.65',
827
- address: '192.168.1.65',
828
- port: 58574,
829
- protocol: 'udp',
830
- candidateType: 'host',
831
- priority: 2122260223,
832
- foundation: '727847474',
833
- usernameFragment: 'V+QJ'
834
- }, {
835
- id: 'Ig7Va+n9f',
836
- timestamp: 1680187470045.045,
837
- type: 'local-candidate',
838
- transportId: 'T01',
839
- isRemote: false,
840
- networkType: 'vpn',
841
- ip: '10.227.211.139',
842
- address: '10.227.211.139',
843
- port: 64898,
844
- protocol: 'udp',
845
- candidateType: 'host',
846
- priority: 2122194687,
847
- foundation: '3774472386',
848
- usernameFragment: 'V+QJ'
849
- }, {
850
- id: 'IxvQ5iqnX',
851
- timestamp: 1680187470045.045,
852
- type: 'remote-candidate',
853
- transportId: 'T01',
854
- isRemote: true,
855
- ip: '207.182.171.180',
856
- address: '207.182.171.180',
857
- port: 19608,
858
- protocol: 'udp',
859
- candidateType: 'host',
860
- priority: 2130706431,
861
- foundation: 'mse',
862
- usernameFragment: 'S3cv'
863
- }, {
864
- id: 'OT01A2728789632',
865
- timestamp: 1680187470045.045,
866
- type: 'outbound-rtp',
867
- ssrc: 2728789632,
868
- kind: 'audio',
869
- trackId: 'DEPRECATED_TO1',
870
- transportId: 'T01',
871
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
872
- mediaType: 'audio',
873
- mediaSourceId: 'SA1',
874
- remoteId: 'RIA2728789632',
875
- mid: '0',
876
- packetsSent: 1026,
877
- retransmittedPacketsSent: 0,
878
- bytesSent: 79294,
879
- headerBytesSent: 12312,
880
- retransmittedBytesSent: 0,
881
- targetBitrate: 32000,
882
- nackCount: 0,
883
- active: true
884
- }, {
885
- id: 'P',
886
- timestamp: 1680187470045.045,
887
- type: 'peer-connection',
888
- dataChannelsOpened: 0,
889
- dataChannelsClosed: 0
890
- }, {
891
- id: 'RIA2728789632',
892
- timestamp: 1680187469719,
893
- type: 'remote-inbound-rtp',
894
- ssrc: 2728789632,
895
- kind: 'audio',
896
- transportId: 'T01',
897
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
898
- jitter: 0.0055625,
899
- packetsLost: 0,
900
- localId: 'OT01A2728789632',
901
- roundTripTime: 0.665,
902
- fractionLost: 0,
903
- totalRoundTripTime: 2.509,
904
- roundTripTimeMeasurements: 0
905
- }, {
906
- id: 'ROA1746541880',
907
- timestamp: 1680187467829,
908
- type: 'remote-outbound-rtp',
909
- ssrc: 1746541880,
910
- kind: 'audio',
911
- transportId: 'T01',
912
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
913
- packetsSent: 895,
914
- bytesSent: 68669,
915
- localId: 'IT01A1746541880',
916
- remoteTimestamp: 1680187467378,
917
- reportsSent: 5,
918
- roundTripTimeMeasurements: 0,
919
- totalRoundTripTime: 0
920
- }, {
921
- id: 'SA1',
922
- timestamp: 1680187470045.045,
923
- type: 'media-source',
924
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
925
- kind: 'audio',
926
- audioLevel: 0.006469924008911405,
927
- totalAudioEnergy: 0.7681144799128602,
928
- totalSamplesDuration: 26.650000000001366,
929
- echoReturnLoss: 13.656129837036133,
930
- echoReturnLossEnhancement: 7.137247085571289
931
- }, {
932
- id: 'T01',
933
- timestamp: 1680187470045.045,
934
- type: 'transport',
935
- bytesSent: 103064,
936
- packetsSent: 1036,
937
- bytesReceived: 100460,
938
- packetsReceived: 1015,
939
- dtlsState: 'connected',
940
- selectedCandidatePairId: 'CPg7Va+n9f_xvQ5iqnX',
941
- localCertificateId: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
942
- remoteCertificateId: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
943
- tlsVersion: 'tls1.2',
944
- dtlsCipher: 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256',
945
- dtlsRole: 'client',
946
- srtpCipher: 'AES_CM_128_HMAC_SHA1_80',
947
- selectedCandidatePairChanges: 1,
948
- iceRole: 'controlling',
949
- iceLocalUsernameFragment: 'V+QJ',
950
- iceState: 'connected'
951
- }],
952
- parsed: {
953
- 'rtp-rxstat': {
954
- LostPkt: 3,
955
- Pkt: 1003,
956
- LatePkt: 0,
957
- Oct: 76880,
958
- Dur: 26.650000000001366,
959
- AvgJit: 0.08820641282565131,
960
- VQMetrics: {
961
- maxJitter: 0,
962
- VoPktSizeMs: 20,
963
- VoOneWayDelayMs: 0,
964
- hwType: "".concat(_platform.default.os, "/").concat(_platform.default.name, "-").concat(_platform.default.version),
965
- networkType: undefined,
966
- VoRxCodec: 'opus'
967
- }
968
- },
969
- 'rtp-txstat': {
970
- Pkt: 1026,
971
- Oct: 79294,
972
- Dur: 26.650000000001366,
973
- VQMetrics: {
974
- VoTxCodec: 'opus',
975
- rtpBitRate: 32000
976
- }
977
- }
978
- }
979
- }
980
- };
981
- };
982
- //# sourceMappingURL=testUtil.js.map