@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
|
@@ -7131,6 +7131,7 @@ class WebRTCClient extends Emitter {
|
|
|
7131
7131
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7132
7132
|
|
|
7133
7133
|
pc.oniceconnectionstatechange = () => {
|
|
7134
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7134
7135
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7135
7136
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7136
7137
|
}
|
package/esm/checker/Checker.js
CHANGED
|
@@ -7716,6 +7716,7 @@ class WebRTCClient extends Emitter {
|
|
|
7716
7716
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7717
7717
|
|
|
7718
7718
|
pc.oniceconnectionstatechange = () => {
|
|
7719
|
+
logger$1.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7719
7720
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7720
7721
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7721
7722
|
}
|
|
@@ -7716,6 +7716,7 @@ class WebRTCClient extends Emitter {
|
|
|
7716
7716
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7717
7717
|
|
|
7718
7718
|
pc.oniceconnectionstatechange = () => {
|
|
7719
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7719
7720
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7720
7721
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7721
7722
|
}
|
|
@@ -7131,6 +7131,7 @@ class WebRTCClient extends Emitter {
|
|
|
7131
7131
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7132
7132
|
|
|
7133
7133
|
pc.oniceconnectionstatechange = () => {
|
|
7134
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7134
7135
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7135
7136
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7136
7137
|
}
|
|
@@ -7131,6 +7131,7 @@ class WebRTCClient extends Emitter {
|
|
|
7131
7131
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7132
7132
|
|
|
7133
7133
|
pc.oniceconnectionstatechange = () => {
|
|
7134
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7134
7135
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7135
7136
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7136
7137
|
}
|
|
@@ -1233,7 +1233,10 @@ class WebRTCPhone extends Emitter {
|
|
|
1233
1233
|
|
|
1234
1234
|
onCancel(message);
|
|
1235
1235
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
1236
|
-
|
|
1236
|
+
const callSession = this._createCallSession(sipSession);
|
|
1237
|
+
delete this.callSessions[callSession.getId()];
|
|
1238
|
+
|
|
1239
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
1237
1240
|
};
|
|
1238
1241
|
} else if (sipSession instanceof Invitation) {
|
|
1239
1242
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/esm/index.js
CHANGED
|
@@ -7955,6 +7955,7 @@ class WebRTCClient extends Emitter {
|
|
|
7955
7955
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7956
7956
|
|
|
7957
7957
|
pc.oniceconnectionstatechange = () => {
|
|
7958
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7958
7959
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7959
7960
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
7960
7961
|
}
|
|
@@ -9513,7 +9514,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9513
9514
|
|
|
9514
9515
|
onCancel(message);
|
|
9515
9516
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9516
|
-
|
|
9517
|
+
const callSession = this._createCallSession(sipSession);
|
|
9518
|
+
delete this.callSessions[callSession.getId()];
|
|
9519
|
+
|
|
9520
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9517
9521
|
};
|
|
9518
9522
|
} else if (sipSession instanceof Invitation) {
|
|
9519
9523
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/esm/simple/Auth.js
CHANGED
|
@@ -8129,6 +8129,7 @@ class WebRTCClient extends Emitter {
|
|
|
8129
8129
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8130
8130
|
|
|
8131
8131
|
pc.oniceconnectionstatechange = () => {
|
|
8132
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8132
8133
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8133
8134
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8134
8135
|
}
|
|
@@ -8794,7 +8795,10 @@ class WebRTCPhone extends Emitter {
|
|
|
8794
8795
|
|
|
8795
8796
|
onCancel(message);
|
|
8796
8797
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
8797
|
-
|
|
8798
|
+
const callSession = this._createCallSession(sipSession);
|
|
8799
|
+
delete this.callSessions[callSession.getId()];
|
|
8800
|
+
|
|
8801
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
8798
8802
|
};
|
|
8799
8803
|
} else if (sipSession instanceof Invitation) {
|
|
8800
8804
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8129,6 +8129,7 @@ class WebRTCClient extends Emitter {
|
|
|
8129
8129
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8130
8130
|
|
|
8131
8131
|
pc.oniceconnectionstatechange = () => {
|
|
8132
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8132
8133
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8133
8134
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8134
8135
|
}
|
|
@@ -8794,7 +8795,10 @@ class WebRTCPhone extends Emitter {
|
|
|
8794
8795
|
|
|
8795
8796
|
onCancel(message);
|
|
8796
8797
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
8797
|
-
|
|
8798
|
+
const callSession = this._createCallSession(sipSession);
|
|
8799
|
+
delete this.callSessions[callSession.getId()];
|
|
8800
|
+
|
|
8801
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
8798
8802
|
};
|
|
8799
8803
|
} else if (sipSession instanceof Invitation) {
|
|
8800
8804
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/esm/simple/Phone.js
CHANGED
|
@@ -8129,6 +8129,7 @@ class WebRTCClient extends Emitter {
|
|
|
8129
8129
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8130
8130
|
|
|
8131
8131
|
pc.oniceconnectionstatechange = () => {
|
|
8132
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8132
8133
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8133
8134
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8134
8135
|
}
|
|
@@ -8794,7 +8795,10 @@ class WebRTCPhone extends Emitter {
|
|
|
8794
8795
|
|
|
8795
8796
|
onCancel(message);
|
|
8796
8797
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
8797
|
-
|
|
8798
|
+
const callSession = this._createCallSession(sipSession);
|
|
8799
|
+
delete this.callSessions[callSession.getId()];
|
|
8800
|
+
|
|
8801
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
8798
8802
|
};
|
|
8799
8803
|
} else if (sipSession instanceof Invitation) {
|
|
8800
8804
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/esm/simple/index.js
CHANGED
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/esm/simple/room/Room.js
CHANGED
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/esm/simple/utils.js
CHANGED
|
@@ -8393,6 +8393,7 @@ class WebRTCClient extends Emitter {
|
|
|
8393
8393
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8394
8394
|
|
|
8395
8395
|
pc.oniceconnectionstatechange = () => {
|
|
8396
|
+
logger$8.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8396
8397
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8397
8398
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8398
8399
|
}
|
|
@@ -9058,7 +9059,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9058
9059
|
|
|
9059
9060
|
onCancel(message);
|
|
9060
9061
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9061
|
-
|
|
9062
|
+
const callSession = this._createCallSession(sipSession);
|
|
9063
|
+
delete this.callSessions[callSession.getId()];
|
|
9064
|
+
|
|
9065
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9062
9066
|
};
|
|
9063
9067
|
} else if (sipSession instanceof Invitation) {
|
|
9064
9068
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/esm/web-rtc-client.js
CHANGED
|
@@ -7134,6 +7134,7 @@ class WebRTCClient extends Emitter {
|
|
|
7134
7134
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7135
7135
|
|
|
7136
7136
|
pc.oniceconnectionstatechange = () => {
|
|
7137
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7137
7138
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7138
7139
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7139
7140
|
}
|
|
@@ -7140,6 +7140,7 @@ class WebRTCClient extends Emitter {
|
|
|
7140
7140
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7141
7141
|
|
|
7142
7142
|
pc.oniceconnectionstatechange = () => {
|
|
7143
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7143
7144
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7144
7145
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7145
7146
|
}
|
package/lib/checker/Checker.js
CHANGED
|
@@ -7726,6 +7726,7 @@ class WebRTCClient extends Emitter {
|
|
|
7726
7726
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7727
7727
|
|
|
7728
7728
|
pc.oniceconnectionstatechange = () => {
|
|
7729
|
+
logger$1.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7729
7730
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7730
7731
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7731
7732
|
}
|
|
@@ -7726,6 +7726,7 @@ class WebRTCClient extends Emitter {
|
|
|
7726
7726
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7727
7727
|
|
|
7728
7728
|
pc.oniceconnectionstatechange = () => {
|
|
7729
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7729
7730
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7730
7731
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7731
7732
|
}
|
|
@@ -7140,6 +7140,7 @@ class WebRTCClient extends Emitter {
|
|
|
7140
7140
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7141
7141
|
|
|
7142
7142
|
pc.oniceconnectionstatechange = () => {
|
|
7143
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7143
7144
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7144
7145
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7145
7146
|
}
|
|
@@ -7140,6 +7140,7 @@ class WebRTCClient extends Emitter {
|
|
|
7140
7140
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7141
7141
|
|
|
7142
7142
|
pc.oniceconnectionstatechange = () => {
|
|
7143
|
+
logger.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7143
7144
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7144
7145
|
this.eventEmitter.emit(ON_DISCONNECTED);
|
|
7145
7146
|
}
|
|
@@ -1242,7 +1242,10 @@ class WebRTCPhone extends Emitter {
|
|
|
1242
1242
|
|
|
1243
1243
|
onCancel(message);
|
|
1244
1244
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
1245
|
-
|
|
1245
|
+
const callSession = this._createCallSession(sipSession);
|
|
1246
|
+
delete this.callSessions[callSession.getId()];
|
|
1247
|
+
|
|
1248
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
1246
1249
|
};
|
|
1247
1250
|
} else if (sipSession instanceof invitation.Invitation) {
|
|
1248
1251
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/lib/index.js
CHANGED
|
@@ -7966,6 +7966,7 @@ class WebRTCClient extends Emitter {
|
|
|
7966
7966
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
7967
7967
|
|
|
7968
7968
|
pc.oniceconnectionstatechange = () => {
|
|
7969
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
7969
7970
|
if (pc.iceConnectionState === 'disconnected') {
|
|
7970
7971
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
7971
7972
|
}
|
|
@@ -9524,7 +9525,10 @@ class WebRTCPhone extends Emitter {
|
|
|
9524
9525
|
|
|
9525
9526
|
onCancel(message);
|
|
9526
9527
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
9527
|
-
|
|
9528
|
+
const callSession = this._createCallSession(sipSession);
|
|
9529
|
+
delete this.callSessions[callSession.getId()];
|
|
9530
|
+
|
|
9531
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
9528
9532
|
};
|
|
9529
9533
|
} else if (sipSession instanceof invitation.Invitation) {
|
|
9530
9534
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/lib/simple/Auth.js
CHANGED
|
@@ -8141,6 +8141,7 @@ class WebRTCClient extends Emitter {
|
|
|
8141
8141
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8142
8142
|
|
|
8143
8143
|
pc.oniceconnectionstatechange = () => {
|
|
8144
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8144
8145
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8145
8146
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8146
8147
|
}
|
|
@@ -8806,7 +8807,10 @@ class WebRTCPhone extends Emitter {
|
|
|
8806
8807
|
|
|
8807
8808
|
onCancel(message);
|
|
8808
8809
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
8809
|
-
|
|
8810
|
+
const callSession = this._createCallSession(sipSession);
|
|
8811
|
+
delete this.callSessions[callSession.getId()];
|
|
8812
|
+
|
|
8813
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
8810
8814
|
};
|
|
8811
8815
|
} else if (sipSession instanceof invitation.Invitation) {
|
|
8812
8816
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
|
@@ -8139,6 +8139,7 @@ class WebRTCClient extends Emitter {
|
|
|
8139
8139
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8140
8140
|
|
|
8141
8141
|
pc.oniceconnectionstatechange = () => {
|
|
8142
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8142
8143
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8143
8144
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8144
8145
|
}
|
|
@@ -8804,7 +8805,10 @@ class WebRTCPhone extends Emitter {
|
|
|
8804
8805
|
|
|
8805
8806
|
onCancel(message);
|
|
8806
8807
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
8807
|
-
|
|
8808
|
+
const callSession = this._createCallSession(sipSession);
|
|
8809
|
+
delete this.callSessions[callSession.getId()];
|
|
8810
|
+
|
|
8811
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
8808
8812
|
};
|
|
8809
8813
|
} else if (sipSession instanceof invitation.Invitation) {
|
|
8810
8814
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/lib/simple/Phone.js
CHANGED
|
@@ -8139,6 +8139,7 @@ class WebRTCClient extends Emitter {
|
|
|
8139
8139
|
session.sessionDescriptionHandler.remoteMediaStream.onaddtrack = onTrack;
|
|
8140
8140
|
|
|
8141
8141
|
pc.oniceconnectionstatechange = () => {
|
|
8142
|
+
logger$9.info('on ice connection state changed', { state: pc.iceConnectionState });
|
|
8142
8143
|
if (pc.iceConnectionState === 'disconnected') {
|
|
8143
8144
|
this.eventEmitter.emit(ON_DISCONNECTED$1);
|
|
8144
8145
|
}
|
|
@@ -8804,7 +8805,10 @@ class WebRTCPhone extends Emitter {
|
|
|
8804
8805
|
|
|
8805
8806
|
onCancel(message);
|
|
8806
8807
|
const elsewhere = message.data.indexOf('cause=26') !== -1 && message.data.indexOf('completed elsewhere') !== -1;
|
|
8807
|
-
|
|
8808
|
+
const callSession = this._createCallSession(sipSession);
|
|
8809
|
+
delete this.callSessions[callSession.getId()];
|
|
8810
|
+
|
|
8811
|
+
this.eventEmitter.emit(ON_CALL_CANCELED, callSession, elsewhere);
|
|
8808
8812
|
};
|
|
8809
8813
|
} else if (sipSession instanceof invitation.Invitation) {
|
|
8810
8814
|
console.warn('sipSession._onCancel not found, please update the wazo SDK accordingly');
|
package/lib/simple/index.js
CHANGED
|
@@ -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');
|
|
@@ -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');
|
|
@@ -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');
|
|
@@ -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/room/Room.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');
|
|
@@ -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');
|
|
@@ -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');
|