@wazo/sdk 0.37.1 → 0.37.2
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.
- package/dist/wazo-sdk.js +5 -5
- package/esm/__tests__/api-client.test.js +7 -1
- package/esm/__tests__/web-rtc-client.test.js +13 -1
- package/esm/api/agentd.js +7 -1
- package/esm/api/amid.js +7 -1
- package/esm/api/application.js +7 -1
- package/esm/api/auth.js +7 -1
- package/esm/api/call-logd.js +7 -1
- package/esm/api/calld.js +7 -1
- package/esm/api/chatd.js +7 -1
- package/esm/api/confd.js +7 -1
- package/esm/api/ctid-ng.js +7 -1
- package/esm/api/dird.js +7 -1
- package/esm/api/webhookd.js +7 -1
- package/esm/api-client.js +7 -1
- package/esm/checker/Checker.js +13 -1
- package/esm/checker/checks/aor.js +7 -1
- package/esm/checker/checks/api.js +7 -1
- package/esm/checker/checks/index.js +13 -1
- package/esm/checker/checks/wazo-websocket.js +7 -1
- package/esm/checker/checks/webrtc-transport.js +13 -1
- package/esm/checker/checks/webrtc.js +13 -1
- package/esm/domain/AdHocAPIConference.js +7 -1
- package/esm/domain/Features.js +7 -1
- package/esm/domain/Phone/CTIPhone.js +11 -1
- package/esm/domain/Phone/WebRTCPhone.js +7 -1
- package/esm/index.js +5648 -5229
- package/esm/lib/WazoSessionDescriptionHandler.js +7 -1
- package/esm/service/CallApi.js +7 -1
- package/esm/service/IssueReporter.js +7 -1
- package/esm/service/__tests__/IssueReporter.test.js +9 -1
- package/esm/service/getApiClient.js +7 -1
- package/esm/simple/Auth.js +426 -9
- package/esm/simple/Configuration.js +426 -9
- package/esm/simple/Directory.js +7 -1
- package/esm/simple/Phone.js +426 -9
- package/esm/simple/Websocket.js +7 -1
- package/esm/simple/index.js +426 -9
- package/esm/simple/room/LocalParticipant.js +426 -9
- package/esm/simple/room/Participant.js +426 -9
- package/esm/simple/room/RemoteParticipant.js +426 -9
- package/esm/simple/room/Room.js +426 -9
- package/esm/simple/room/Stream.js +426 -9
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +426 -9
- package/esm/simple/utils.js +426 -9
- package/esm/utils/__tests__/api-requester.test.js +7 -1
- package/esm/utils/api-requester.js +7 -1
- package/esm/web-rtc-client.js +13 -1
- package/esm/websocket-client.js +7 -1
- package/lib/__tests__/api-client.test.js +7 -1
- package/lib/__tests__/web-rtc-client.test.js +13 -1
- package/lib/api/agentd.js +7 -1
- package/lib/api/amid.js +7 -1
- package/lib/api/application.js +7 -1
- package/lib/api/auth.js +7 -1
- package/lib/api/call-logd.js +7 -1
- package/lib/api/calld.js +7 -1
- package/lib/api/chatd.js +7 -1
- package/lib/api/confd.js +7 -1
- package/lib/api/ctid-ng.js +7 -1
- package/lib/api/dird.js +7 -1
- package/lib/api/webhookd.js +7 -1
- package/lib/api-client.js +7 -1
- package/lib/checker/Checker.js +13 -1
- package/lib/checker/checks/aor.js +7 -1
- package/lib/checker/checks/api.js +7 -1
- package/lib/checker/checks/index.js +13 -1
- package/lib/checker/checks/wazo-websocket.js +7 -1
- package/lib/checker/checks/webrtc-transport.js +13 -1
- package/lib/checker/checks/webrtc.js +13 -1
- package/lib/domain/AdHocAPIConference.js +7 -1
- package/lib/domain/Features.js +7 -1
- package/lib/domain/Phone/CTIPhone.js +11 -1
- package/lib/domain/Phone/WebRTCPhone.js +7 -1
- package/lib/index.js +5648 -5229
- package/lib/lib/WazoSessionDescriptionHandler.js +7 -1
- package/lib/service/CallApi.js +7 -1
- package/lib/service/IssueReporter.js +7 -1
- package/lib/service/__tests__/IssueReporter.test.js +9 -1
- package/lib/service/getApiClient.js +7 -1
- package/lib/simple/Auth.js +426 -9
- package/lib/simple/Configuration.js +426 -9
- package/lib/simple/Directory.js +7 -1
- package/lib/simple/Phone.js +426 -9
- package/lib/simple/Websocket.js +7 -1
- package/lib/simple/index.js +426 -9
- package/lib/simple/room/LocalParticipant.js +426 -9
- package/lib/simple/room/Participant.js +426 -9
- package/lib/simple/room/RemoteParticipant.js +426 -9
- package/lib/simple/room/Room.js +426 -9
- package/lib/simple/room/Stream.js +426 -9
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +426 -9
- package/lib/simple/utils.js +426 -9
- package/lib/utils/__tests__/api-requester.test.js +7 -1
- package/lib/utils/api-requester.js +7 -1
- package/lib/web-rtc-client.js +13 -1
- package/lib/websocket-client.js +7 -1
- package/package.json +1 -1
- package/src/domain/Phone/CTIPhone.js +4 -0
- package/src/domain/Phone/Phone.js +2 -0
- package/src/index.js +4 -0
- package/src/service/IssueReporter.js +7 -1
- package/src/service/__tests__/IssueReporter.test.js +2 -0
- package/src/simple/index.js +4 -0
- package/src/web-rtc-client.js +6 -0
|
@@ -309,7 +309,13 @@ class IssueReporter {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
_isLevelAbove(level1 , level2 ) {
|
|
312
|
-
|
|
312
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
313
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
314
|
+
if (index1 === -1 || index2 === -1) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return index1 > index2;
|
|
313
319
|
}
|
|
314
320
|
|
|
315
321
|
_makeCategory(category ) {
|
|
@@ -591,7 +591,13 @@ class IssueReporter {
|
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
_isLevelAbove(level1 , level2 ) {
|
|
594
|
-
|
|
594
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
595
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
596
|
+
if (index1 === -1 || index2 === -1) {
|
|
597
|
+
return false;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
return index1 > index2;
|
|
595
601
|
}
|
|
596
602
|
|
|
597
603
|
_makeCategory(category ) {
|
|
@@ -5692,6 +5698,9 @@ class WebRTCClient extends Emitter {
|
|
|
5692
5698
|
if (!this._isWeb()) {
|
|
5693
5699
|
options.sessionDescriptionHandlerModifiers = [holdModifier];
|
|
5694
5700
|
}
|
|
5701
|
+
options.sessionDescriptionHandlerOptions = {
|
|
5702
|
+
constraints: options.constraints,
|
|
5703
|
+
};
|
|
5695
5704
|
|
|
5696
5705
|
// Send re-INVITE
|
|
5697
5706
|
return session.invite(options);
|
|
@@ -5731,6 +5740,9 @@ class WebRTCClient extends Emitter {
|
|
|
5731
5740
|
// (eg: holdModifier)
|
|
5732
5741
|
options.sessionDescriptionHandlerModifiers = [];
|
|
5733
5742
|
}
|
|
5743
|
+
options.sessionDescriptionHandlerOptions = {
|
|
5744
|
+
constraints: options.constraints,
|
|
5745
|
+
};
|
|
5734
5746
|
|
|
5735
5747
|
// Send re-INVITE
|
|
5736
5748
|
return session.invite(options);
|
package/esm/api/agentd.js
CHANGED
|
@@ -305,7 +305,13 @@ class IssueReporter {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
_isLevelAbove(level1 , level2 ) {
|
|
308
|
-
|
|
308
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
309
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
310
|
+
if (index1 === -1 || index2 === -1) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return index1 > index2;
|
|
309
315
|
}
|
|
310
316
|
|
|
311
317
|
_makeCategory(category ) {
|
package/esm/api/amid.js
CHANGED
|
@@ -244,7 +244,13 @@ class IssueReporter {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
_isLevelAbove(level1 , level2 ) {
|
|
247
|
-
|
|
247
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
248
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
249
|
+
if (index1 === -1 || index2 === -1) {
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return index1 > index2;
|
|
248
254
|
}
|
|
249
255
|
|
|
250
256
|
_makeCategory(category ) {
|
package/esm/api/application.js
CHANGED
|
@@ -305,7 +305,13 @@ class IssueReporter {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
_isLevelAbove(level1 , level2 ) {
|
|
308
|
-
|
|
308
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
309
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
310
|
+
if (index1 === -1 || index2 === -1) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return index1 > index2;
|
|
309
315
|
}
|
|
310
316
|
|
|
311
317
|
_makeCategory(category ) {
|
package/esm/api/auth.js
CHANGED
|
@@ -306,7 +306,13 @@ class IssueReporter {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
_isLevelAbove(level1 , level2 ) {
|
|
309
|
-
|
|
309
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
310
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
311
|
+
if (index1 === -1 || index2 === -1) {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
return index1 > index2;
|
|
310
316
|
}
|
|
311
317
|
|
|
312
318
|
_makeCategory(category ) {
|
package/esm/api/call-logd.js
CHANGED
|
@@ -245,7 +245,13 @@ class IssueReporter {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
_isLevelAbove(level1 , level2 ) {
|
|
248
|
-
|
|
248
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
249
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
250
|
+
if (index1 === -1 || index2 === -1) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return index1 > index2;
|
|
249
255
|
}
|
|
250
256
|
|
|
251
257
|
_makeCategory(category ) {
|
package/esm/api/calld.js
CHANGED
|
@@ -306,7 +306,13 @@ class IssueReporter {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
_isLevelAbove(level1 , level2 ) {
|
|
309
|
-
|
|
309
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
310
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
311
|
+
if (index1 === -1 || index2 === -1) {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
return index1 > index2;
|
|
310
316
|
}
|
|
311
317
|
|
|
312
318
|
_makeCategory(category ) {
|
package/esm/api/chatd.js
CHANGED
|
@@ -305,7 +305,13 @@ class IssueReporter {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
_isLevelAbove(level1 , level2 ) {
|
|
308
|
-
|
|
308
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
309
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
310
|
+
if (index1 === -1 || index2 === -1) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return index1 > index2;
|
|
309
315
|
}
|
|
310
316
|
|
|
311
317
|
_makeCategory(category ) {
|
package/esm/api/confd.js
CHANGED
|
@@ -305,7 +305,13 @@ class IssueReporter {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
_isLevelAbove(level1 , level2 ) {
|
|
308
|
-
|
|
308
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
309
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
310
|
+
if (index1 === -1 || index2 === -1) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return index1 > index2;
|
|
309
315
|
}
|
|
310
316
|
|
|
311
317
|
_makeCategory(category ) {
|
package/esm/api/ctid-ng.js
CHANGED
|
@@ -309,7 +309,13 @@ class IssueReporter {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
_isLevelAbove(level1 , level2 ) {
|
|
312
|
-
|
|
312
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
313
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
314
|
+
if (index1 === -1 || index2 === -1) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return index1 > index2;
|
|
313
319
|
}
|
|
314
320
|
|
|
315
321
|
_makeCategory(category ) {
|
package/esm/api/dird.js
CHANGED
|
@@ -307,7 +307,13 @@ class IssueReporter {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
_isLevelAbove(level1 , level2 ) {
|
|
310
|
-
|
|
310
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
311
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
312
|
+
if (index1 === -1 || index2 === -1) {
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return index1 > index2;
|
|
311
317
|
}
|
|
312
318
|
|
|
313
319
|
_makeCategory(category ) {
|
package/esm/api/webhookd.js
CHANGED
|
@@ -244,7 +244,13 @@ class IssueReporter {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
_isLevelAbove(level1 , level2 ) {
|
|
247
|
-
|
|
247
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
248
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
249
|
+
if (index1 === -1 || index2 === -1) {
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return index1 > index2;
|
|
248
254
|
}
|
|
249
255
|
|
|
250
256
|
_makeCategory(category ) {
|
package/esm/api-client.js
CHANGED
|
@@ -309,7 +309,13 @@ class IssueReporter {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
_isLevelAbove(level1 , level2 ) {
|
|
312
|
-
|
|
312
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
313
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
314
|
+
if (index1 === -1 || index2 === -1) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return index1 > index2;
|
|
313
319
|
}
|
|
314
320
|
|
|
315
321
|
_makeCategory(category ) {
|
package/esm/checker/Checker.js
CHANGED
|
@@ -327,7 +327,13 @@ class IssueReporter {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
_isLevelAbove(level1 , level2 ) {
|
|
330
|
-
|
|
330
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
331
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
332
|
+
if (index1 === -1 || index2 === -1) {
|
|
333
|
+
return false;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
return index1 > index2;
|
|
331
337
|
}
|
|
332
338
|
|
|
333
339
|
_makeCategory(category ) {
|
|
@@ -6271,6 +6277,9 @@ class WebRTCClient extends Emitter {
|
|
|
6271
6277
|
if (!this._isWeb()) {
|
|
6272
6278
|
options.sessionDescriptionHandlerModifiers = [holdModifier];
|
|
6273
6279
|
}
|
|
6280
|
+
options.sessionDescriptionHandlerOptions = {
|
|
6281
|
+
constraints: options.constraints,
|
|
6282
|
+
};
|
|
6274
6283
|
|
|
6275
6284
|
// Send re-INVITE
|
|
6276
6285
|
return session.invite(options);
|
|
@@ -6310,6 +6319,9 @@ class WebRTCClient extends Emitter {
|
|
|
6310
6319
|
// (eg: holdModifier)
|
|
6311
6320
|
options.sessionDescriptionHandlerModifiers = [];
|
|
6312
6321
|
}
|
|
6322
|
+
options.sessionDescriptionHandlerOptions = {
|
|
6323
|
+
constraints: options.constraints,
|
|
6324
|
+
};
|
|
6313
6325
|
|
|
6314
6326
|
// Send re-INVITE
|
|
6315
6327
|
return session.invite(options);
|
|
@@ -309,7 +309,13 @@ class IssueReporter {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
_isLevelAbove(level1 , level2 ) {
|
|
312
|
-
|
|
312
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
313
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
314
|
+
if (index1 === -1 || index2 === -1) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return index1 > index2;
|
|
313
319
|
}
|
|
314
320
|
|
|
315
321
|
_makeCategory(category ) {
|
|
@@ -309,7 +309,13 @@ class IssueReporter {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
_isLevelAbove(level1 , level2 ) {
|
|
312
|
-
|
|
312
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
313
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
314
|
+
if (index1 === -1 || index2 === -1) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return index1 > index2;
|
|
313
319
|
}
|
|
314
320
|
|
|
315
321
|
_makeCategory(category ) {
|
|
@@ -327,7 +327,13 @@ class IssueReporter {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
_isLevelAbove(level1 , level2 ) {
|
|
330
|
-
|
|
330
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
331
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
332
|
+
if (index1 === -1 || index2 === -1) {
|
|
333
|
+
return false;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
return index1 > index2;
|
|
331
337
|
}
|
|
332
338
|
|
|
333
339
|
_makeCategory(category ) {
|
|
@@ -6271,6 +6277,9 @@ class WebRTCClient extends Emitter {
|
|
|
6271
6277
|
if (!this._isWeb()) {
|
|
6272
6278
|
options.sessionDescriptionHandlerModifiers = [holdModifier];
|
|
6273
6279
|
}
|
|
6280
|
+
options.sessionDescriptionHandlerOptions = {
|
|
6281
|
+
constraints: options.constraints,
|
|
6282
|
+
};
|
|
6274
6283
|
|
|
6275
6284
|
// Send re-INVITE
|
|
6276
6285
|
return session.invite(options);
|
|
@@ -6310,6 +6319,9 @@ class WebRTCClient extends Emitter {
|
|
|
6310
6319
|
// (eg: holdModifier)
|
|
6311
6320
|
options.sessionDescriptionHandlerModifiers = [];
|
|
6312
6321
|
}
|
|
6322
|
+
options.sessionDescriptionHandlerOptions = {
|
|
6323
|
+
constraints: options.constraints,
|
|
6324
|
+
};
|
|
6313
6325
|
|
|
6314
6326
|
// Send re-INVITE
|
|
6315
6327
|
return session.invite(options);
|
|
@@ -300,7 +300,13 @@ class IssueReporter {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
_isLevelAbove(level1 , level2 ) {
|
|
303
|
-
|
|
303
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
304
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
305
|
+
if (index1 === -1 || index2 === -1) {
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
return index1 > index2;
|
|
304
310
|
}
|
|
305
311
|
|
|
306
312
|
_makeCategory(category ) {
|
|
@@ -591,7 +591,13 @@ class IssueReporter {
|
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
_isLevelAbove(level1 , level2 ) {
|
|
594
|
-
|
|
594
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
595
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
596
|
+
if (index1 === -1 || index2 === -1) {
|
|
597
|
+
return false;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
return index1 > index2;
|
|
595
601
|
}
|
|
596
602
|
|
|
597
603
|
_makeCategory(category ) {
|
|
@@ -5692,6 +5698,9 @@ class WebRTCClient extends Emitter {
|
|
|
5692
5698
|
if (!this._isWeb()) {
|
|
5693
5699
|
options.sessionDescriptionHandlerModifiers = [holdModifier];
|
|
5694
5700
|
}
|
|
5701
|
+
options.sessionDescriptionHandlerOptions = {
|
|
5702
|
+
constraints: options.constraints,
|
|
5703
|
+
};
|
|
5695
5704
|
|
|
5696
5705
|
// Send re-INVITE
|
|
5697
5706
|
return session.invite(options);
|
|
@@ -5731,6 +5740,9 @@ class WebRTCClient extends Emitter {
|
|
|
5731
5740
|
// (eg: holdModifier)
|
|
5732
5741
|
options.sessionDescriptionHandlerModifiers = [];
|
|
5733
5742
|
}
|
|
5743
|
+
options.sessionDescriptionHandlerOptions = {
|
|
5744
|
+
constraints: options.constraints,
|
|
5745
|
+
};
|
|
5734
5746
|
|
|
5735
5747
|
// Send re-INVITE
|
|
5736
5748
|
return session.invite(options);
|
|
@@ -591,7 +591,13 @@ class IssueReporter {
|
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
_isLevelAbove(level1 , level2 ) {
|
|
594
|
-
|
|
594
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
595
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
596
|
+
if (index1 === -1 || index2 === -1) {
|
|
597
|
+
return false;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
return index1 > index2;
|
|
595
601
|
}
|
|
596
602
|
|
|
597
603
|
_makeCategory(category ) {
|
|
@@ -5692,6 +5698,9 @@ class WebRTCClient extends Emitter {
|
|
|
5692
5698
|
if (!this._isWeb()) {
|
|
5693
5699
|
options.sessionDescriptionHandlerModifiers = [holdModifier];
|
|
5694
5700
|
}
|
|
5701
|
+
options.sessionDescriptionHandlerOptions = {
|
|
5702
|
+
constraints: options.constraints,
|
|
5703
|
+
};
|
|
5695
5704
|
|
|
5696
5705
|
// Send re-INVITE
|
|
5697
5706
|
return session.invite(options);
|
|
@@ -5731,6 +5740,9 @@ class WebRTCClient extends Emitter {
|
|
|
5731
5740
|
// (eg: holdModifier)
|
|
5732
5741
|
options.sessionDescriptionHandlerModifiers = [];
|
|
5733
5742
|
}
|
|
5743
|
+
options.sessionDescriptionHandlerOptions = {
|
|
5744
|
+
constraints: options.constraints,
|
|
5745
|
+
};
|
|
5734
5746
|
|
|
5735
5747
|
// Send re-INVITE
|
|
5736
5748
|
return session.invite(options);
|
|
@@ -526,7 +526,13 @@ class IssueReporter {
|
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
_isLevelAbove(level1 , level2 ) {
|
|
529
|
-
|
|
529
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
530
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
531
|
+
if (index1 === -1 || index2 === -1) {
|
|
532
|
+
return false;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
return index1 > index2;
|
|
530
536
|
}
|
|
531
537
|
|
|
532
538
|
_makeCategory(category ) {
|
package/esm/domain/Features.js
CHANGED
|
@@ -309,7 +309,13 @@ class IssueReporter {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
_isLevelAbove(level1 , level2 ) {
|
|
312
|
-
|
|
312
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
313
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
314
|
+
if (index1 === -1 || index2 === -1) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return index1 > index2;
|
|
313
319
|
}
|
|
314
320
|
|
|
315
321
|
_makeCategory(category ) {
|
|
@@ -2676,7 +2676,13 @@ class IssueReporter {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
|
|
2678
2678
|
_isLevelAbove(level1 , level2 ) {
|
|
2679
|
-
|
|
2679
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
2680
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
2681
|
+
if (index1 === -1 || index2 === -1) {
|
|
2682
|
+
return false;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
return index1 > index2;
|
|
2680
2686
|
}
|
|
2681
2687
|
|
|
2682
2688
|
_makeCategory(category ) {
|
|
@@ -5159,6 +5165,10 @@ class CTIPhone extends Emitter {
|
|
|
5159
5165
|
return null;
|
|
5160
5166
|
}
|
|
5161
5167
|
|
|
5168
|
+
getLocalVideoStream() {
|
|
5169
|
+
return null;
|
|
5170
|
+
}
|
|
5171
|
+
|
|
5162
5172
|
setActiveSipSession() {}
|
|
5163
5173
|
|
|
5164
5174
|
isRegistered() {
|
|
@@ -653,7 +653,13 @@ class IssueReporter {
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
_isLevelAbove(level1 , level2 ) {
|
|
656
|
-
|
|
656
|
+
const index1 = LOG_LEVELS.indexOf(level1);
|
|
657
|
+
const index2 = LOG_LEVELS.indexOf(level2);
|
|
658
|
+
if (index1 === -1 || index2 === -1) {
|
|
659
|
+
return false;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
return index1 > index2;
|
|
657
663
|
}
|
|
658
664
|
|
|
659
665
|
_makeCategory(category ) {
|