@wazo/sdk 0.37.21 → 0.37.22
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 +2 -2
- 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/WebRTCPhone.js +4 -1
- package/esm/index.js +5 -1
- package/esm/simple/Auth.js +5 -1
- package/esm/simple/Configuration.js +5 -1
- package/esm/simple/Phone.js +5 -1
- package/esm/simple/index.js +5 -1
- package/esm/simple/room/LocalParticipant.js +5 -1
- package/esm/simple/room/Participant.js +5 -1
- package/esm/simple/room/RemoteParticipant.js +5 -1
- package/esm/simple/room/Room.js +5 -1
- package/esm/simple/room/SipRoom.js +5 -1
- package/esm/simple/room/Stream.js +5 -1
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +5 -1
- package/esm/simple/utils.js +5 -1
- 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/WebRTCPhone.js +4 -1
- package/lib/index.js +5 -1
- package/lib/simple/Auth.js +5 -1
- package/lib/simple/Configuration.js +5 -1
- package/lib/simple/Phone.js +5 -1
- package/lib/simple/index.js +5 -1
- package/lib/simple/room/LocalParticipant.js +5 -1
- package/lib/simple/room/Participant.js +5 -1
- package/lib/simple/room/RemoteParticipant.js +5 -1
- package/lib/simple/room/Room.js +5 -1
- package/lib/simple/room/SipRoom.js +5 -1
- package/lib/simple/room/Stream.js +5 -1
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +5 -1
- package/lib/simple/utils.js +5 -1
- package/lib/web-rtc-client.js +1 -0
- package/package.json +1 -1
- package/src/domain/Phone/WebRTCPhone.js +4 -1
- package/src/web-rtc-client.js +1 -0
|
@@ -8403,6 +8403,7 @@ class WebRTCClient extends Emitter {
|
|
|
8403
8403
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8404
8404
|
|
|
8405
8405
|
pc.oniceconnectionstatechange = () => {
|
|
8406
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8406
8407
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8407
8408
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8408
8409
|
}
|
|
@@ -9068,7 +9069,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9068
9069
|
|
|
9069
9070
|
onCancel(message);
|
|
9070
9071
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9071
|
-
|
|
9072
|
+
const callSession = this._createCallSession(sipSession);
|
|
9073
|
+
delete this.callSessions[callSession.getId()];
|
|
9074
|
+
|
|
9075
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9072
9076
|
};
|
|
9073
9077
|
} else if (sipSession instanceof invitation.Invitation) {
|
|
9074
9078
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/lib/simple/utils.js
CHANGED
|
@@ -8405,6 +8405,7 @@ class WebRTCClient extends Emitter {
|
|
|
8405
8405
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8406
8406
|
|
|
8407
8407
|
pc.oniceconnectionstatechange = () => {
|
|
8408
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8408
8409
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8409
8410
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8410
8411
|
}
|
|
@@ -9070,7 +9071,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9070
9071
|
|
|
9071
9072
|
onCancel(message);
|
|
9072
9073
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9073
|
-
|
|
9074
|
+
const callSession = this._createCallSession(sipSession);
|
|
9075
|
+
delete this.callSessions[callSession.getId()];
|
|
9076
|
+
|
|
9077
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9074
9078
|
};
|
|
9075
9079
|
} else if (sipSession instanceof invitation.Invitation) {
|
|
9076
9080
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/lib/web-rtc-client.js
CHANGED
|
@@ -7145,6 +7145,7 @@ class WebRTCClient extends Emitter {
|
|
|
7145
7145
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7146
7146
|
|
|
7147
7147
|
pc.oniceconnectionstatechange = () => {
|
|
7148
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7148
7149
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7149
7150
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7150
7151
|
}
|
package/package.json
CHANGED
|
@@ -385,7 +385,10 @@ export default class WebRTCPhone extends Emitter implements Phone {
|
|
|
385
385
|
|
|
386
386
|
onCancel(message);
|
|
387
387
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
388
|
-
|
|
388
|
+
const callSession = this._createCallSession(sipSession);
|
|
389
|
+
delete this.callSessions[callSession.getId()];
|
|
390
|
+
|
|
391
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
389
392
|
};
|
|
390
393
|
} else if (sipSession instanceof Invitation) {
|
|
391
394
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/src/web-rtc-client.js
CHANGED
|
@@ -1872,6 +1872,7 @@ export default class WebRTCClient extends Emitter {
|
|
|
1872
1872
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
1873
1873
|
|
|
1874
1874
|
pc.oniceconnectionstatechange = () => {
|
|
1875
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
1875
1876
|
if (pc.iceConnectionState === 'disconnected') {
|
|
1876
1877
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
1877
1878
|
}
|