@wazo/sdk 0.38.13 → 0.38.14
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 +4 -4
- package/esm/__tests__/web-rtc-client.test.js +1 -0
- package/esm/checker/Checker.js +1 -0
- package/esm/checker/checks/index.js +1 -0
- package/esm/checker/checks/webrtc-transport.js +1 -0
- package/esm/checker/checks/webrtc.js +1 -0
- package/esm/domain/Phone/CTIPhone.js +2 -0
- package/esm/index.js +11 -3
- package/esm/simple/Auth.js +11 -3
- package/esm/simple/Configuration.js +11 -3
- package/esm/simple/Phone.js +11 -3
- package/esm/simple/index.js +11 -3
- package/esm/simple/room/LocalParticipant.js +5521 -5513
- package/esm/simple/room/Participant.js +5527 -5519
- package/esm/simple/room/RemoteParticipant.js +11 -3
- package/esm/simple/room/Room.js +11 -3
- package/esm/simple/room/SipRoom.js +11 -3
- package/esm/simple/room/Stream.js +11 -3
- package/esm/simple/room/__tests__/Participant.test.js +11 -3
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +11 -3
- package/esm/simple/utils.js +11 -3
- package/esm/web-rtc-client.js +1 -0
- package/lib/__tests__/web-rtc-client.test.js +1 -0
- package/lib/checker/Checker.js +1 -0
- package/lib/checker/checks/index.js +1 -0
- package/lib/checker/checks/webrtc-transport.js +1 -0
- package/lib/checker/checks/webrtc.js +1 -0
- package/lib/domain/Phone/CTIPhone.js +2 -0
- package/lib/index.js +11 -3
- package/lib/simple/Auth.js +11 -3
- package/lib/simple/Configuration.js +11 -3
- package/lib/simple/Phone.js +11 -3
- package/lib/simple/index.js +11 -3
- package/lib/simple/room/LocalParticipant.js +6430 -6422
- package/lib/simple/room/Participant.js +6433 -6425
- package/lib/simple/room/RemoteParticipant.js +11 -3
- package/lib/simple/room/Room.js +11 -3
- package/lib/simple/room/SipRoom.js +11 -3
- package/lib/simple/room/Stream.js +11 -3
- package/lib/simple/room/__tests__/Participant.test.js +11 -3
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +11 -3
- package/lib/simple/utils.js +11 -3
- package/lib/web-rtc-client.js +1 -0
- package/package.json +1 -1
- package/src/domain/Phone/CTIPhone.js +2 -0
- package/src/domain/Phone/Phone.js +2 -0
- package/src/simple/room/Participant.js +7 -1
- package/src/simple/room/Room.js +2 -2
- package/src/web-rtc-client.js +1 -0
|
@@ -4606,6 +4606,8 @@ class CTIPhone extends Emitter {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
useLocalVideoElement() {}
|
|
4609
|
+
|
|
4610
|
+
setMediaConstraints() {}
|
|
4609
4611
|
}
|
|
4610
4612
|
|
|
4611
4613
|
/* */
|
|
@@ -7417,6 +7419,7 @@ class WebRTCClient extends Emitter {
|
|
|
7417
7419
|
conference,
|
|
7418
7420
|
audioOnly,
|
|
7419
7421
|
},
|
|
7422
|
+
earlyMedia: true,
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
if (audioOnly) {
|
|
@@ -12431,10 +12434,15 @@ class Participant extends Emitter {
|
|
|
12431
12434
|
}
|
|
12432
12435
|
}
|
|
12433
12436
|
|
|
12434
|
-
broadcastStatus(inboundStatus = null) {
|
|
12437
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12435
12438
|
const status = inboundStatus || this.getStatus();
|
|
12436
12439
|
logger$2.info('broadcasting participant status', { callId: this.callId, status });
|
|
12437
12440
|
|
|
12441
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12442
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12443
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12444
|
+
}
|
|
12445
|
+
|
|
12438
12446
|
this.room.sendSignal({
|
|
12439
12447
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12440
12448
|
origin: this.callId,
|
|
@@ -14484,7 +14492,7 @@ class Room extends Emitter {
|
|
|
14484
14492
|
// callId is null, someone's requesting everyone's state;
|
|
14485
14493
|
// or callId is set and matches ours;
|
|
14486
14494
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
14487
|
-
this.localParticipant.broadcastStatus();
|
|
14495
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
14488
14496
|
}
|
|
14489
14497
|
|
|
14490
14498
|
// might as well update the requester's status
|
|
@@ -14586,7 +14594,7 @@ class Room extends Emitter {
|
|
|
14586
14594
|
|
|
14587
14595
|
this.connected = true;
|
|
14588
14596
|
|
|
14589
|
-
localParticipant.broadcastStatus();
|
|
14597
|
+
localParticipant.broadcastStatus(null, true);
|
|
14590
14598
|
|
|
14591
14599
|
// we're in the room, now let's request everyone's status
|
|
14592
14600
|
if (this.localParticipant) {
|
package/esm/simple/room/Room.js
CHANGED
|
@@ -4606,6 +4606,8 @@ class CTIPhone extends Emitter {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
useLocalVideoElement() {}
|
|
4609
|
+
|
|
4610
|
+
setMediaConstraints() {}
|
|
4609
4611
|
}
|
|
4610
4612
|
|
|
4611
4613
|
/* */
|
|
@@ -7417,6 +7419,7 @@ class WebRTCClient extends Emitter {
|
|
|
7417
7419
|
conference,
|
|
7418
7420
|
audioOnly,
|
|
7419
7421
|
},
|
|
7422
|
+
earlyMedia: true,
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
if (audioOnly) {
|
|
@@ -12431,10 +12434,15 @@ class Participant extends Emitter {
|
|
|
12431
12434
|
}
|
|
12432
12435
|
}
|
|
12433
12436
|
|
|
12434
|
-
broadcastStatus(inboundStatus = null) {
|
|
12437
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12435
12438
|
const status = inboundStatus || this.getStatus();
|
|
12436
12439
|
logger$2.info('broadcasting participant status', { callId: this.callId, status });
|
|
12437
12440
|
|
|
12441
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12442
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12443
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12444
|
+
}
|
|
12445
|
+
|
|
12438
12446
|
this.room.sendSignal({
|
|
12439
12447
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12440
12448
|
origin: this.callId,
|
|
@@ -14495,7 +14503,7 @@ class Room extends Emitter {
|
|
|
14495
14503
|
// callId is null, someone's requesting everyone's state;
|
|
14496
14504
|
// or callId is set and matches ours;
|
|
14497
14505
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
14498
|
-
this.localParticipant.broadcastStatus();
|
|
14506
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
14499
14507
|
}
|
|
14500
14508
|
|
|
14501
14509
|
// might as well update the requester's status
|
|
@@ -14597,7 +14605,7 @@ class Room extends Emitter {
|
|
|
14597
14605
|
|
|
14598
14606
|
this.connected = true;
|
|
14599
14607
|
|
|
14600
|
-
localParticipant.broadcastStatus();
|
|
14608
|
+
localParticipant.broadcastStatus(null, true);
|
|
14601
14609
|
|
|
14602
14610
|
// we're in the room, now let's request everyone's status
|
|
14603
14611
|
if (this.localParticipant) {
|
|
@@ -4606,6 +4606,8 @@ class CTIPhone extends Emitter {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
useLocalVideoElement() {}
|
|
4609
|
+
|
|
4610
|
+
setMediaConstraints() {}
|
|
4609
4611
|
}
|
|
4610
4612
|
|
|
4611
4613
|
/* */
|
|
@@ -7417,6 +7419,7 @@ class WebRTCClient extends Emitter {
|
|
|
7417
7419
|
conference,
|
|
7418
7420
|
audioOnly,
|
|
7419
7421
|
},
|
|
7422
|
+
earlyMedia: true,
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
if (audioOnly) {
|
|
@@ -12292,10 +12295,15 @@ class Participant extends Emitter {
|
|
|
12292
12295
|
}
|
|
12293
12296
|
}
|
|
12294
12297
|
|
|
12295
|
-
broadcastStatus(inboundStatus = null) {
|
|
12298
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12296
12299
|
const status = inboundStatus || this.getStatus();
|
|
12297
12300
|
logger$3.info('broadcasting participant status', { callId: this.callId, status });
|
|
12298
12301
|
|
|
12302
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12303
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12304
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12305
|
+
}
|
|
12306
|
+
|
|
12299
12307
|
this.room.sendSignal({
|
|
12300
12308
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12301
12309
|
origin: this.callId,
|
|
@@ -12938,7 +12946,7 @@ class Room$1 extends Emitter {
|
|
|
12938
12946
|
// callId is null, someone's requesting everyone's state;
|
|
12939
12947
|
// or callId is set and matches ours;
|
|
12940
12948
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12941
|
-
this.localParticipant.broadcastStatus();
|
|
12949
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12942
12950
|
}
|
|
12943
12951
|
|
|
12944
12952
|
// might as well update the requester's status
|
|
@@ -13040,7 +13048,7 @@ class Room$1 extends Emitter {
|
|
|
13040
13048
|
|
|
13041
13049
|
this.connected = true;
|
|
13042
13050
|
|
|
13043
|
-
localParticipant.broadcastStatus();
|
|
13051
|
+
localParticipant.broadcastStatus(null, true);
|
|
13044
13052
|
|
|
13045
13053
|
// we're in the room, now let's request everyone's status
|
|
13046
13054
|
if (this.localParticipant) {
|
|
@@ -4606,6 +4606,8 @@ class CTIPhone extends Emitter {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
useLocalVideoElement() {}
|
|
4609
|
+
|
|
4610
|
+
setMediaConstraints() {}
|
|
4609
4611
|
}
|
|
4610
4612
|
|
|
4611
4613
|
/* */
|
|
@@ -7417,6 +7419,7 @@ class WebRTCClient extends Emitter {
|
|
|
7417
7419
|
conference,
|
|
7418
7420
|
audioOnly,
|
|
7419
7421
|
},
|
|
7422
|
+
earlyMedia: true,
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
if (audioOnly) {
|
|
@@ -12292,10 +12295,15 @@ class Participant extends Emitter {
|
|
|
12292
12295
|
}
|
|
12293
12296
|
}
|
|
12294
12297
|
|
|
12295
|
-
broadcastStatus(inboundStatus = null) {
|
|
12298
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12296
12299
|
const status = inboundStatus || this.getStatus();
|
|
12297
12300
|
logger$3.info('broadcasting participant status', { callId: this.callId, status });
|
|
12298
12301
|
|
|
12302
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12303
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12304
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12305
|
+
}
|
|
12306
|
+
|
|
12299
12307
|
this.room.sendSignal({
|
|
12300
12308
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12301
12309
|
origin: this.callId,
|
|
@@ -12938,7 +12946,7 @@ class Room$1 extends Emitter {
|
|
|
12938
12946
|
// callId is null, someone's requesting everyone's state;
|
|
12939
12947
|
// or callId is set and matches ours;
|
|
12940
12948
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12941
|
-
this.localParticipant.broadcastStatus();
|
|
12949
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12942
12950
|
}
|
|
12943
12951
|
|
|
12944
12952
|
// might as well update the requester's status
|
|
@@ -13040,7 +13048,7 @@ class Room$1 extends Emitter {
|
|
|
13040
13048
|
|
|
13041
13049
|
this.connected = true;
|
|
13042
13050
|
|
|
13043
|
-
localParticipant.broadcastStatus();
|
|
13051
|
+
localParticipant.broadcastStatus(null, true);
|
|
13044
13052
|
|
|
13045
13053
|
// we're in the room, now let's request everyone's status
|
|
13046
13054
|
if (this.localParticipant) {
|
|
@@ -4606,6 +4606,8 @@ class CTIPhone extends Emitter {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
useLocalVideoElement() {}
|
|
4609
|
+
|
|
4610
|
+
setMediaConstraints() {}
|
|
4609
4611
|
}
|
|
4610
4612
|
|
|
4611
4613
|
/* */
|
|
@@ -7417,6 +7419,7 @@ class WebRTCClient extends Emitter {
|
|
|
7417
7419
|
conference,
|
|
7418
7420
|
audioOnly,
|
|
7419
7421
|
},
|
|
7422
|
+
earlyMedia: true,
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
if (audioOnly) {
|
|
@@ -12292,10 +12295,15 @@ class Participant extends Emitter {
|
|
|
12292
12295
|
}
|
|
12293
12296
|
}
|
|
12294
12297
|
|
|
12295
|
-
broadcastStatus(inboundStatus = null) {
|
|
12298
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12296
12299
|
const status = inboundStatus || this.getStatus();
|
|
12297
12300
|
logger$3.info('broadcasting participant status', { callId: this.callId, status });
|
|
12298
12301
|
|
|
12302
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12303
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12304
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12305
|
+
}
|
|
12306
|
+
|
|
12299
12307
|
this.room.sendSignal({
|
|
12300
12308
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12301
12309
|
origin: this.callId,
|
|
@@ -12938,7 +12946,7 @@ class Room$1 extends Emitter {
|
|
|
12938
12946
|
// callId is null, someone's requesting everyone's state;
|
|
12939
12947
|
// or callId is set and matches ours;
|
|
12940
12948
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12941
|
-
this.localParticipant.broadcastStatus();
|
|
12949
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12942
12950
|
}
|
|
12943
12951
|
|
|
12944
12952
|
// might as well update the requester's status
|
|
@@ -13040,7 +13048,7 @@ class Room$1 extends Emitter {
|
|
|
13040
13048
|
|
|
13041
13049
|
this.connected = true;
|
|
13042
13050
|
|
|
13043
|
-
localParticipant.broadcastStatus();
|
|
13051
|
+
localParticipant.broadcastStatus(null, true);
|
|
13044
13052
|
|
|
13045
13053
|
// we're in the room, now let's request everyone's status
|
|
13046
13054
|
if (this.localParticipant) {
|
|
@@ -4606,6 +4606,8 @@ class CTIPhone extends Emitter {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
useLocalVideoElement() {}
|
|
4609
|
+
|
|
4610
|
+
setMediaConstraints() {}
|
|
4609
4611
|
}
|
|
4610
4612
|
|
|
4611
4613
|
/* */
|
|
@@ -7417,6 +7419,7 @@ class WebRTCClient extends Emitter {
|
|
|
7417
7419
|
conference,
|
|
7418
7420
|
audioOnly,
|
|
7419
7421
|
},
|
|
7422
|
+
earlyMedia: true,
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
if (audioOnly) {
|
|
@@ -12292,10 +12295,15 @@ class Participant extends Emitter {
|
|
|
12292
12295
|
}
|
|
12293
12296
|
}
|
|
12294
12297
|
|
|
12295
|
-
broadcastStatus(inboundStatus = null) {
|
|
12298
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12296
12299
|
const status = inboundStatus || this.getStatus();
|
|
12297
12300
|
logger$3.info('broadcasting participant status', { callId: this.callId, status });
|
|
12298
12301
|
|
|
12302
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12303
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12304
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12305
|
+
}
|
|
12306
|
+
|
|
12299
12307
|
this.room.sendSignal({
|
|
12300
12308
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12301
12309
|
origin: this.callId,
|
|
@@ -12938,7 +12946,7 @@ class Room$1 extends Emitter {
|
|
|
12938
12946
|
// callId is null, someone's requesting everyone's state;
|
|
12939
12947
|
// or callId is set and matches ours;
|
|
12940
12948
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12941
|
-
this.localParticipant.broadcastStatus();
|
|
12949
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12942
12950
|
}
|
|
12943
12951
|
|
|
12944
12952
|
// might as well update the requester's status
|
|
@@ -13040,7 +13048,7 @@ class Room$1 extends Emitter {
|
|
|
13040
13048
|
|
|
13041
13049
|
this.connected = true;
|
|
13042
13050
|
|
|
13043
|
-
localParticipant.broadcastStatus();
|
|
13051
|
+
localParticipant.broadcastStatus(null, true);
|
|
13044
13052
|
|
|
13045
13053
|
// we're in the room, now let's request everyone's status
|
|
13046
13054
|
if (this.localParticipant) {
|
package/esm/simple/utils.js
CHANGED
|
@@ -4606,6 +4606,8 @@ class CTIPhone extends Emitter {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
useLocalVideoElement() {}
|
|
4609
|
+
|
|
4610
|
+
setMediaConstraints() {}
|
|
4609
4611
|
}
|
|
4610
4612
|
|
|
4611
4613
|
/* */
|
|
@@ -7417,6 +7419,7 @@ class WebRTCClient extends Emitter {
|
|
|
7417
7419
|
conference,
|
|
7418
7420
|
audioOnly,
|
|
7419
7421
|
},
|
|
7422
|
+
earlyMedia: true,
|
|
7420
7423
|
};
|
|
7421
7424
|
|
|
7422
7425
|
if (audioOnly) {
|
|
@@ -12292,10 +12295,15 @@ class Participant extends Emitter {
|
|
|
12292
12295
|
}
|
|
12293
12296
|
}
|
|
12294
12297
|
|
|
12295
|
-
broadcastStatus(inboundStatus = null) {
|
|
12298
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12296
12299
|
const status = inboundStatus || this.getStatus();
|
|
12297
12300
|
logger$3.info('broadcasting participant status', { callId: this.callId, status });
|
|
12298
12301
|
|
|
12302
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12303
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12304
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12305
|
+
}
|
|
12306
|
+
|
|
12299
12307
|
this.room.sendSignal({
|
|
12300
12308
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12301
12309
|
origin: this.callId,
|
|
@@ -12938,7 +12946,7 @@ class Room$1 extends Emitter {
|
|
|
12938
12946
|
// callId is null, someone's requesting everyone's state;
|
|
12939
12947
|
// or callId is set and matches ours;
|
|
12940
12948
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12941
|
-
this.localParticipant.broadcastStatus();
|
|
12949
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12942
12950
|
}
|
|
12943
12951
|
|
|
12944
12952
|
// might as well update the requester's status
|
|
@@ -13040,7 +13048,7 @@ class Room$1 extends Emitter {
|
|
|
13040
13048
|
|
|
13041
13049
|
this.connected = true;
|
|
13042
13050
|
|
|
13043
|
-
localParticipant.broadcastStatus();
|
|
13051
|
+
localParticipant.broadcastStatus(null, true);
|
|
13044
13052
|
|
|
13045
13053
|
// we're in the room, now let's request everyone's status
|
|
13046
13054
|
if (this.localParticipant) {
|
package/esm/web-rtc-client.js
CHANGED
package/lib/checker/Checker.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -4730,6 +4730,8 @@ class CTIPhone extends Emitter {
|
|
|
4730
4730
|
}
|
|
4731
4731
|
|
|
4732
4732
|
useLocalVideoElement() {}
|
|
4733
|
+
|
|
4734
|
+
setMediaConstraints() {}
|
|
4733
4735
|
}
|
|
4734
4736
|
|
|
4735
4737
|
/* */
|
|
@@ -6919,6 +6921,7 @@ class WebRTCClient extends Emitter {
|
|
|
6919
6921
|
conference,
|
|
6920
6922
|
audioOnly,
|
|
6921
6923
|
},
|
|
6924
|
+
earlyMedia: true,
|
|
6922
6925
|
};
|
|
6923
6926
|
|
|
6924
6927
|
if (audioOnly) {
|
|
@@ -13282,10 +13285,15 @@ class Participant extends Emitter {
|
|
|
13282
13285
|
}
|
|
13283
13286
|
}
|
|
13284
13287
|
|
|
13285
|
-
broadcastStatus(inboundStatus = null) {
|
|
13288
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
13286
13289
|
const status = inboundStatus || this.getStatus();
|
|
13287
13290
|
logger$2.info('broadcasting participant status', { callId: this.callId, status });
|
|
13288
13291
|
|
|
13292
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
13293
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
13294
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
13295
|
+
}
|
|
13296
|
+
|
|
13289
13297
|
this.room.sendSignal({
|
|
13290
13298
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
13291
13299
|
origin: this.callId,
|
|
@@ -13928,7 +13936,7 @@ class Room extends Emitter {
|
|
|
13928
13936
|
// callId is null, someone's requesting everyone's state;
|
|
13929
13937
|
// or callId is set and matches ours;
|
|
13930
13938
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
13931
|
-
this.localParticipant.broadcastStatus();
|
|
13939
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
13932
13940
|
}
|
|
13933
13941
|
|
|
13934
13942
|
// might as well update the requester's status
|
|
@@ -14030,7 +14038,7 @@ class Room extends Emitter {
|
|
|
14030
14038
|
|
|
14031
14039
|
this.connected = true;
|
|
14032
14040
|
|
|
14033
|
-
localParticipant.broadcastStatus();
|
|
14041
|
+
localParticipant.broadcastStatus(null, true);
|
|
14034
14042
|
|
|
14035
14043
|
// we're in the room, now let's request everyone's status
|
|
14036
14044
|
if (this.localParticipant) {
|
package/lib/simple/Auth.js
CHANGED
|
@@ -4618,6 +4618,8 @@ class CTIPhone extends Emitter {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
|
|
4620
4620
|
useLocalVideoElement() {}
|
|
4621
|
+
|
|
4622
|
+
setMediaConstraints() {}
|
|
4621
4623
|
}
|
|
4622
4624
|
|
|
4623
4625
|
/* */
|
|
@@ -7098,6 +7100,7 @@ class WebRTCClient extends Emitter {
|
|
|
7098
7100
|
conference,
|
|
7099
7101
|
audioOnly,
|
|
7100
7102
|
},
|
|
7103
|
+
earlyMedia: true,
|
|
7101
7104
|
};
|
|
7102
7105
|
|
|
7103
7106
|
if (audioOnly) {
|
|
@@ -11973,10 +11976,15 @@ class Participant extends Emitter {
|
|
|
11973
11976
|
}
|
|
11974
11977
|
}
|
|
11975
11978
|
|
|
11976
|
-
broadcastStatus(inboundStatus = null) {
|
|
11979
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
11977
11980
|
const status = inboundStatus || this.getStatus();
|
|
11978
11981
|
logger$4.info('broadcasting participant status', { callId: this.callId, status });
|
|
11979
11982
|
|
|
11983
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
11984
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
11985
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
11986
|
+
}
|
|
11987
|
+
|
|
11980
11988
|
this.room.sendSignal({
|
|
11981
11989
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
11982
11990
|
origin: this.callId,
|
|
@@ -12619,7 +12627,7 @@ class Room$1 extends Emitter {
|
|
|
12619
12627
|
// callId is null, someone's requesting everyone's state;
|
|
12620
12628
|
// or callId is set and matches ours;
|
|
12621
12629
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12622
|
-
this.localParticipant.broadcastStatus();
|
|
12630
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12623
12631
|
}
|
|
12624
12632
|
|
|
12625
12633
|
// might as well update the requester's status
|
|
@@ -12721,7 +12729,7 @@ class Room$1 extends Emitter {
|
|
|
12721
12729
|
|
|
12722
12730
|
this.connected = true;
|
|
12723
12731
|
|
|
12724
|
-
localParticipant.broadcastStatus();
|
|
12732
|
+
localParticipant.broadcastStatus(null, true);
|
|
12725
12733
|
|
|
12726
12734
|
// we're in the room, now let's request everyone's status
|
|
12727
12735
|
if (this.localParticipant) {
|
|
@@ -4616,6 +4616,8 @@ class CTIPhone extends Emitter {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
|
|
4618
4618
|
useLocalVideoElement() {}
|
|
4619
|
+
|
|
4620
|
+
setMediaConstraints() {}
|
|
4619
4621
|
}
|
|
4620
4622
|
|
|
4621
4623
|
/* */
|
|
@@ -7096,6 +7098,7 @@ class WebRTCClient extends Emitter {
|
|
|
7096
7098
|
conference,
|
|
7097
7099
|
audioOnly,
|
|
7098
7100
|
},
|
|
7101
|
+
earlyMedia: true,
|
|
7099
7102
|
};
|
|
7100
7103
|
|
|
7101
7104
|
if (audioOnly) {
|
|
@@ -11971,10 +11974,15 @@ class Participant extends Emitter {
|
|
|
11971
11974
|
}
|
|
11972
11975
|
}
|
|
11973
11976
|
|
|
11974
|
-
broadcastStatus(inboundStatus = null) {
|
|
11977
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
11975
11978
|
const status = inboundStatus || this.getStatus();
|
|
11976
11979
|
logger$4.info('broadcasting participant status', { callId: this.callId, status });
|
|
11977
11980
|
|
|
11981
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
11982
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
11983
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
11984
|
+
}
|
|
11985
|
+
|
|
11978
11986
|
this.room.sendSignal({
|
|
11979
11987
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
11980
11988
|
origin: this.callId,
|
|
@@ -12617,7 +12625,7 @@ class Room$1 extends Emitter {
|
|
|
12617
12625
|
// callId is null, someone's requesting everyone's state;
|
|
12618
12626
|
// or callId is set and matches ours;
|
|
12619
12627
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12620
|
-
this.localParticipant.broadcastStatus();
|
|
12628
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12621
12629
|
}
|
|
12622
12630
|
|
|
12623
12631
|
// might as well update the requester's status
|
|
@@ -12719,7 +12727,7 @@ class Room$1 extends Emitter {
|
|
|
12719
12727
|
|
|
12720
12728
|
this.connected = true;
|
|
12721
12729
|
|
|
12722
|
-
localParticipant.broadcastStatus();
|
|
12730
|
+
localParticipant.broadcastStatus(null, true);
|
|
12723
12731
|
|
|
12724
12732
|
// we're in the room, now let's request everyone's status
|
|
12725
12733
|
if (this.localParticipant) {
|
package/lib/simple/Phone.js
CHANGED
|
@@ -4616,6 +4616,8 @@ class CTIPhone extends Emitter {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
|
|
4618
4618
|
useLocalVideoElement() {}
|
|
4619
|
+
|
|
4620
|
+
setMediaConstraints() {}
|
|
4619
4621
|
}
|
|
4620
4622
|
|
|
4621
4623
|
/* */
|
|
@@ -7096,6 +7098,7 @@ class WebRTCClient extends Emitter {
|
|
|
7096
7098
|
conference,
|
|
7097
7099
|
audioOnly,
|
|
7098
7100
|
},
|
|
7101
|
+
earlyMedia: true,
|
|
7099
7102
|
};
|
|
7100
7103
|
|
|
7101
7104
|
if (audioOnly) {
|
|
@@ -11884,10 +11887,15 @@ class Participant extends Emitter {
|
|
|
11884
11887
|
}
|
|
11885
11888
|
}
|
|
11886
11889
|
|
|
11887
|
-
broadcastStatus(inboundStatus = null) {
|
|
11890
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
11888
11891
|
const status = inboundStatus || this.getStatus();
|
|
11889
11892
|
logger$4.info('broadcasting participant status', { callId: this.callId, status });
|
|
11890
11893
|
|
|
11894
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
11895
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
11896
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
11897
|
+
}
|
|
11898
|
+
|
|
11891
11899
|
this.room.sendSignal({
|
|
11892
11900
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
11893
11901
|
origin: this.callId,
|
|
@@ -12530,7 +12538,7 @@ class Room$1 extends Emitter {
|
|
|
12530
12538
|
// callId is null, someone's requesting everyone's state;
|
|
12531
12539
|
// or callId is set and matches ours;
|
|
12532
12540
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12533
|
-
this.localParticipant.broadcastStatus();
|
|
12541
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12534
12542
|
}
|
|
12535
12543
|
|
|
12536
12544
|
// might as well update the requester's status
|
|
@@ -12632,7 +12640,7 @@ class Room$1 extends Emitter {
|
|
|
12632
12640
|
|
|
12633
12641
|
this.connected = true;
|
|
12634
12642
|
|
|
12635
|
-
localParticipant.broadcastStatus();
|
|
12643
|
+
localParticipant.broadcastStatus(null, true);
|
|
12636
12644
|
|
|
12637
12645
|
// we're in the room, now let's request everyone's status
|
|
12638
12646
|
if (this.localParticipant) {
|
package/lib/simple/index.js
CHANGED
|
@@ -4616,6 +4616,8 @@ class CTIPhone extends Emitter {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
|
|
4618
4618
|
useLocalVideoElement() {}
|
|
4619
|
+
|
|
4620
|
+
setMediaConstraints() {}
|
|
4619
4621
|
}
|
|
4620
4622
|
|
|
4621
4623
|
/* */
|
|
@@ -7427,6 +7429,7 @@ class WebRTCClient extends Emitter {
|
|
|
7427
7429
|
conference,
|
|
7428
7430
|
audioOnly,
|
|
7429
7431
|
},
|
|
7432
|
+
earlyMedia: true,
|
|
7430
7433
|
};
|
|
7431
7434
|
|
|
7432
7435
|
if (audioOnly) {
|
|
@@ -12302,10 +12305,15 @@ class Participant extends Emitter {
|
|
|
12302
12305
|
}
|
|
12303
12306
|
}
|
|
12304
12307
|
|
|
12305
|
-
broadcastStatus(inboundStatus = null) {
|
|
12308
|
+
broadcastStatus(inboundStatus = null, sendReinvite ) {
|
|
12306
12309
|
const status = inboundStatus || this.getStatus();
|
|
12307
12310
|
logger$3.info('broadcasting participant status', { callId: this.callId, status });
|
|
12308
12311
|
|
|
12312
|
+
if (sendReinvite && !this.streams.length && Phone$1.phone) {
|
|
12313
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12314
|
+
Phone$1.phone._sendReinviteMessage(this.room.callSession, false);
|
|
12315
|
+
}
|
|
12316
|
+
|
|
12309
12317
|
this.room.sendSignal({
|
|
12310
12318
|
type: SIGNAL_TYPE_PARTICIPANT_UPDATE,
|
|
12311
12319
|
origin: this.callId,
|
|
@@ -12948,7 +12956,7 @@ class Room$1 extends Emitter {
|
|
|
12948
12956
|
// callId is null, someone's requesting everyone's state;
|
|
12949
12957
|
// or callId is set and matches ours;
|
|
12950
12958
|
if (this.localParticipant && (!callId || callId === this.localParticipant.callId)) {
|
|
12951
|
-
this.localParticipant.broadcastStatus();
|
|
12959
|
+
this.localParticipant.broadcastStatus(null, true);
|
|
12952
12960
|
}
|
|
12953
12961
|
|
|
12954
12962
|
// might as well update the requester's status
|
|
@@ -13050,7 +13058,7 @@ class Room$1 extends Emitter {
|
|
|
13050
13058
|
|
|
13051
13059
|
this.connected = true;
|
|
13052
13060
|
|
|
13053
|
-
localParticipant.broadcastStatus();
|
|
13061
|
+
localParticipant.broadcastStatus(null, true);
|
|
13054
13062
|
|
|
13055
13063
|
// we're in the room, now let's request everyone's status
|
|
13056
13064
|
if (this.localParticipant) {
|