@wazo/sdk 0.38.4 → 0.38.5
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/README.md +3 -3
- package/dist/wazo-sdk.js +2 -2
- package/esm/__tests__/web-rtc-client.test.js +8 -0
- package/esm/checker/Checker.js +8 -0
- package/esm/checker/checks/index.js +8 -0
- package/esm/checker/checks/webrtc-transport.js +8 -0
- package/esm/checker/checks/webrtc.js +8 -0
- package/esm/domain/__tests__/Line.test.js +5 -5
- package/esm/index.js +9 -2
- package/esm/lib/WazoSessionDescriptionHandler.js +8 -0
- package/esm/simple/Auth.js +9 -2
- package/esm/simple/Configuration.js +9 -2
- package/esm/simple/Phone.js +9 -2
- package/esm/simple/Softphone.js +1 -2
- package/esm/simple/index.js +9 -2
- package/esm/simple/room/LocalParticipant.js +9 -2
- package/esm/simple/room/Participant.js +9 -2
- package/esm/simple/room/RemoteParticipant.js +9 -2
- package/esm/simple/room/Room.js +9 -2
- package/esm/simple/room/SipRoom.js +9 -2
- package/esm/simple/room/Stream.js +9 -2
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +9 -2
- package/esm/simple/utils.js +9 -2
- package/esm/web-rtc-client.js +8 -0
- package/lib/__tests__/web-rtc-client.test.js +8 -0
- package/lib/checker/Checker.js +8 -0
- package/lib/checker/checks/index.js +8 -0
- package/lib/checker/checks/webrtc-transport.js +8 -0
- package/lib/checker/checks/webrtc.js +8 -0
- package/lib/domain/__tests__/Line.test.js +5 -5
- package/lib/index.js +9 -2
- package/lib/lib/WazoSessionDescriptionHandler.js +8 -0
- package/lib/simple/Auth.js +9 -2
- package/lib/simple/Configuration.js +9 -2
- package/lib/simple/Phone.js +9 -2
- package/lib/simple/Softphone.js +1 -2
- package/lib/simple/index.js +9 -2
- package/lib/simple/room/LocalParticipant.js +9 -2
- package/lib/simple/room/Participant.js +9 -2
- package/lib/simple/room/RemoteParticipant.js +9 -2
- package/lib/simple/room/Room.js +9 -2
- package/lib/simple/room/SipRoom.js +9 -2
- package/lib/simple/room/Stream.js +9 -2
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +9 -2
- package/lib/simple/utils.js +9 -2
- package/lib/web-rtc-client.js +8 -0
- package/package.json +1 -1
- package/src/domain/__tests__/Line.test.js +5 -5
- package/src/lib/WazoSessionDescriptionHandler.js +8 -0
- package/src/simple/Softphone.js +1 -2
|
@@ -876,6 +876,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
876
876
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
877
877
|
if (event.candidate) {
|
|
878
878
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
879
|
+
|
|
880
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
881
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
882
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
883
|
+
ice: event.candidate.candidate,
|
|
884
|
+
});
|
|
885
|
+
this.iceGatheringComplete();
|
|
886
|
+
}
|
|
879
887
|
}
|
|
880
888
|
};
|
|
881
889
|
|
package/esm/checker/Checker.js
CHANGED
|
@@ -5606,6 +5606,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
5606
5606
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5607
5607
|
if (event.candidate) {
|
|
5608
5608
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5609
|
+
|
|
5610
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
5611
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
5612
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
5613
|
+
ice: event.candidate.candidate,
|
|
5614
|
+
});
|
|
5615
|
+
this.iceGatheringComplete();
|
|
5616
|
+
}
|
|
5609
5617
|
}
|
|
5610
5618
|
};
|
|
5611
5619
|
|
|
@@ -5606,6 +5606,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
5606
5606
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5607
5607
|
if (event.candidate) {
|
|
5608
5608
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5609
|
+
|
|
5610
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
5611
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
5612
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
5613
|
+
ice: event.candidate.candidate,
|
|
5614
|
+
});
|
|
5615
|
+
this.iceGatheringComplete();
|
|
5616
|
+
}
|
|
5609
5617
|
}
|
|
5610
5618
|
};
|
|
5611
5619
|
|
|
@@ -876,6 +876,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
876
876
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
877
877
|
if (event.candidate) {
|
|
878
878
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
879
|
+
|
|
880
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
881
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
882
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
883
|
+
ice: event.candidate.candidate,
|
|
884
|
+
});
|
|
885
|
+
this.iceGatheringComplete();
|
|
886
|
+
}
|
|
879
887
|
}
|
|
880
888
|
};
|
|
881
889
|
|
|
@@ -876,6 +876,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
876
876
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
877
877
|
if (event.candidate) {
|
|
878
878
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
879
|
+
|
|
880
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
881
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
882
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
883
|
+
ice: event.candidate.candidate,
|
|
884
|
+
});
|
|
885
|
+
this.iceGatheringComplete();
|
|
886
|
+
}
|
|
879
887
|
}
|
|
880
888
|
};
|
|
881
889
|
|
|
@@ -98,7 +98,7 @@ describe('Line domain', () => {
|
|
|
98
98
|
username: 'ipcor1pj',
|
|
99
99
|
links: [
|
|
100
100
|
{
|
|
101
|
-
href: 'https://stack.
|
|
101
|
+
href: 'https://stack.example.com/api/confd/1.1/endpoints/sip/19',
|
|
102
102
|
rel: 'endpoint_sip',
|
|
103
103
|
},
|
|
104
104
|
],
|
|
@@ -112,7 +112,7 @@ describe('Line domain', () => {
|
|
|
112
112
|
context: 'default',
|
|
113
113
|
links: [
|
|
114
114
|
{
|
|
115
|
-
href: 'https://stack.
|
|
115
|
+
href: 'https://stack.example.com/api/confd/1.1/extensions/59',
|
|
116
116
|
rel: 'extensions',
|
|
117
117
|
},
|
|
118
118
|
],
|
|
@@ -120,7 +120,7 @@ describe('Line domain', () => {
|
|
|
120
120
|
],
|
|
121
121
|
links: [
|
|
122
122
|
{
|
|
123
|
-
href: 'https://stack.
|
|
123
|
+
href: 'https://stack.example.com/api/confd/1.1/lines/8',
|
|
124
124
|
rel: 'lines',
|
|
125
125
|
},
|
|
126
126
|
],
|
|
@@ -138,7 +138,7 @@ describe('Line domain', () => {
|
|
|
138
138
|
context: 'default',
|
|
139
139
|
links: [
|
|
140
140
|
{
|
|
141
|
-
href: 'https://stack.
|
|
141
|
+
href: 'https://stack.example.com/api/confd/1.1/extensions/59',
|
|
142
142
|
rel: 'extensions',
|
|
143
143
|
},
|
|
144
144
|
],
|
|
@@ -148,7 +148,7 @@ describe('Line domain', () => {
|
|
|
148
148
|
id: 19,
|
|
149
149
|
links: [
|
|
150
150
|
{
|
|
151
|
-
href: 'https://stack.
|
|
151
|
+
href: 'https://stack.example.com/api/confd/1.1/endpoints/sip/19',
|
|
152
152
|
rel: 'endpoint_sip',
|
|
153
153
|
},
|
|
154
154
|
],
|
package/esm/index.js
CHANGED
|
@@ -5817,6 +5817,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
5817
5817
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5818
5818
|
if (event.candidate) {
|
|
5819
5819
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5820
|
+
|
|
5821
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
5822
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
5823
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
5824
|
+
ice: event.candidate.candidate,
|
|
5825
|
+
});
|
|
5826
|
+
this.iceGatheringComplete();
|
|
5827
|
+
}
|
|
5820
5828
|
}
|
|
5821
5829
|
};
|
|
5822
5830
|
|
|
@@ -14229,8 +14237,7 @@ class Softphone {
|
|
|
14229
14237
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
14230
14238
|
|
|
14231
14239
|
if (!server) {
|
|
14232
|
-
|
|
14233
|
-
server = 'stack.dev.wazo.io';
|
|
14240
|
+
throw new Error('`server` is not set');
|
|
14234
14241
|
}
|
|
14235
14242
|
|
|
14236
14243
|
const config = { server };
|
|
@@ -540,6 +540,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
540
540
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
541
541
|
if (event.candidate) {
|
|
542
542
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
543
|
+
|
|
544
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
545
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
546
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
547
|
+
ice: event.candidate.candidate,
|
|
548
|
+
});
|
|
549
|
+
this.iceGatheringComplete();
|
|
550
|
+
}
|
|
543
551
|
}
|
|
544
552
|
};
|
|
545
553
|
|
package/esm/simple/Auth.js
CHANGED
|
@@ -5995,6 +5995,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
5995
5995
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5996
5996
|
if (event.candidate) {
|
|
5997
5997
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5998
|
+
|
|
5999
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6000
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6001
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6002
|
+
ice: event.candidate.candidate,
|
|
6003
|
+
});
|
|
6004
|
+
this.iceGatheringComplete();
|
|
6005
|
+
}
|
|
5998
6006
|
}
|
|
5999
6007
|
};
|
|
6000
6008
|
|
|
@@ -13790,8 +13798,7 @@ class Softphone {
|
|
|
13790
13798
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
13791
13799
|
|
|
13792
13800
|
if (!server) {
|
|
13793
|
-
|
|
13794
|
-
server = 'stack.dev.wazo.io';
|
|
13801
|
+
throw new Error('`server` is not set');
|
|
13795
13802
|
}
|
|
13796
13803
|
|
|
13797
13804
|
const config = { server };
|
|
@@ -5995,6 +5995,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
5995
5995
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5996
5996
|
if (event.candidate) {
|
|
5997
5997
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5998
|
+
|
|
5999
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6000
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6001
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6002
|
+
ice: event.candidate.candidate,
|
|
6003
|
+
});
|
|
6004
|
+
this.iceGatheringComplete();
|
|
6005
|
+
}
|
|
5998
6006
|
}
|
|
5999
6007
|
};
|
|
6000
6008
|
|
|
@@ -13773,8 +13781,7 @@ class Softphone {
|
|
|
13773
13781
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
13774
13782
|
|
|
13775
13783
|
if (!server) {
|
|
13776
|
-
|
|
13777
|
-
server = 'stack.dev.wazo.io';
|
|
13784
|
+
throw new Error('`server` is not set');
|
|
13778
13785
|
}
|
|
13779
13786
|
|
|
13780
13787
|
const config = { server };
|
package/esm/simple/Phone.js
CHANGED
|
@@ -5995,6 +5995,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
5995
5995
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5996
5996
|
if (event.candidate) {
|
|
5997
5997
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5998
|
+
|
|
5999
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6000
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6001
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6002
|
+
ice: event.candidate.candidate,
|
|
6003
|
+
});
|
|
6004
|
+
this.iceGatheringComplete();
|
|
6005
|
+
}
|
|
5998
6006
|
}
|
|
5999
6007
|
};
|
|
6000
6008
|
|
|
@@ -13681,8 +13689,7 @@ class Softphone {
|
|
|
13681
13689
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
13682
13690
|
|
|
13683
13691
|
if (!server) {
|
|
13684
|
-
|
|
13685
|
-
server = 'stack.dev.wazo.io';
|
|
13692
|
+
throw new Error('`server` is not set');
|
|
13686
13693
|
}
|
|
13687
13694
|
|
|
13688
13695
|
const config = { server };
|
package/esm/simple/Softphone.js
CHANGED
|
@@ -120,8 +120,7 @@ class Softphone {
|
|
|
120
120
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
121
121
|
|
|
122
122
|
if (!server) {
|
|
123
|
-
|
|
124
|
-
server = 'stack.dev.wazo.io';
|
|
123
|
+
throw new Error('`server` is not set');
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
const config = { server };
|
package/esm/simple/index.js
CHANGED
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -14091,8 +14099,7 @@ class Softphone {
|
|
|
14091
14099
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
14092
14100
|
|
|
14093
14101
|
if (!server) {
|
|
14094
|
-
|
|
14095
|
-
server = 'stack.dev.wazo.io';
|
|
14102
|
+
throw new Error('`server` is not set');
|
|
14096
14103
|
}
|
|
14097
14104
|
|
|
14098
14105
|
const config = { server };
|
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -12960,8 +12968,7 @@ class Softphone {
|
|
|
12960
12968
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
12961
12969
|
|
|
12962
12970
|
if (!server) {
|
|
12963
|
-
|
|
12964
|
-
server = 'stack.dev.wazo.io';
|
|
12971
|
+
throw new Error('`server` is not set');
|
|
12965
12972
|
}
|
|
12966
12973
|
|
|
12967
12974
|
const config = { server };
|
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -12965,8 +12973,7 @@ class Softphone {
|
|
|
12965
12973
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
12966
12974
|
|
|
12967
12975
|
if (!server) {
|
|
12968
|
-
|
|
12969
|
-
server = 'stack.dev.wazo.io';
|
|
12976
|
+
throw new Error('`server` is not set');
|
|
12970
12977
|
}
|
|
12971
12978
|
|
|
12972
12979
|
const config = { server };
|
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -13244,8 +13252,7 @@ class Softphone {
|
|
|
13244
13252
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
13245
13253
|
|
|
13246
13254
|
if (!server) {
|
|
13247
|
-
|
|
13248
|
-
server = 'stack.dev.wazo.io';
|
|
13255
|
+
throw new Error('`server` is not set');
|
|
13249
13256
|
}
|
|
13250
13257
|
|
|
13251
13258
|
const config = { server };
|
package/esm/simple/room/Room.js
CHANGED
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -13255,8 +13263,7 @@ class Softphone {
|
|
|
13255
13263
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
13256
13264
|
|
|
13257
13265
|
if (!server) {
|
|
13258
|
-
|
|
13259
|
-
server = 'stack.dev.wazo.io';
|
|
13266
|
+
throw new Error('`server` is not set');
|
|
13260
13267
|
}
|
|
13261
13268
|
|
|
13262
13269
|
const config = { server };
|
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -13952,8 +13960,7 @@ class Softphone {
|
|
|
13952
13960
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
13953
13961
|
|
|
13954
13962
|
if (!server) {
|
|
13955
|
-
|
|
13956
|
-
server = 'stack.dev.wazo.io';
|
|
13963
|
+
throw new Error('`server` is not set');
|
|
13957
13964
|
}
|
|
13958
13965
|
|
|
13959
13966
|
const config = { server };
|
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -14033,8 +14041,7 @@ class Softphone {
|
|
|
14033
14041
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
14034
14042
|
|
|
14035
14043
|
if (!server) {
|
|
14036
|
-
|
|
14037
|
-
server = 'stack.dev.wazo.io';
|
|
14044
|
+
throw new Error('`server` is not set');
|
|
14038
14045
|
}
|
|
14039
14046
|
|
|
14040
14047
|
const config = { server };
|
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -14091,8 +14099,7 @@ class Softphone {
|
|
|
14091
14099
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
14092
14100
|
|
|
14093
14101
|
if (!server) {
|
|
14094
|
-
|
|
14095
|
-
server = 'stack.dev.wazo.io';
|
|
14102
|
+
throw new Error('`server` is not set');
|
|
14096
14103
|
}
|
|
14097
14104
|
|
|
14098
14105
|
const config = { server };
|
package/esm/simple/utils.js
CHANGED
|
@@ -6296,6 +6296,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
6296
6296
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
6297
6297
|
if (event.candidate) {
|
|
6298
6298
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
6299
|
+
|
|
6300
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
6301
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
6302
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
6303
|
+
ice: event.candidate.candidate,
|
|
6304
|
+
});
|
|
6305
|
+
this.iceGatheringComplete();
|
|
6306
|
+
}
|
|
6299
6307
|
}
|
|
6300
6308
|
};
|
|
6301
6309
|
|
|
@@ -14075,8 +14083,7 @@ class Softphone {
|
|
|
14075
14083
|
window.addEventListener('message', this._onMessage.bind(this), false);
|
|
14076
14084
|
|
|
14077
14085
|
if (!server) {
|
|
14078
|
-
|
|
14079
|
-
server = 'stack.dev.wazo.io';
|
|
14086
|
+
throw new Error('`server` is not set');
|
|
14080
14087
|
}
|
|
14081
14088
|
|
|
14082
14089
|
const config = { server };
|
package/esm/web-rtc-client.js
CHANGED
|
@@ -876,6 +876,14 @@ class WazoSessionDescriptionHandler extends SessionDescriptionHandler {
|
|
|
876
876
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
877
877
|
if (event.candidate) {
|
|
878
878
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
879
|
+
|
|
880
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
881
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
882
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
883
|
+
ice: event.candidate.candidate,
|
|
884
|
+
});
|
|
885
|
+
this.iceGatheringComplete();
|
|
886
|
+
}
|
|
879
887
|
}
|
|
880
888
|
};
|
|
881
889
|
|
|
@@ -885,6 +885,14 @@ class WazoSessionDescriptionHandler extends sessionDescriptionHandler.SessionDes
|
|
|
885
885
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
886
886
|
if (event.candidate) {
|
|
887
887
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
888
|
+
|
|
889
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
890
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
891
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
892
|
+
ice: event.candidate.candidate,
|
|
893
|
+
});
|
|
894
|
+
this.iceGatheringComplete();
|
|
895
|
+
}
|
|
888
896
|
}
|
|
889
897
|
};
|
|
890
898
|
|
package/lib/checker/Checker.js
CHANGED
|
@@ -5616,6 +5616,14 @@ class WazoSessionDescriptionHandler extends sessionDescriptionHandler.SessionDes
|
|
|
5616
5616
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5617
5617
|
if (event.candidate) {
|
|
5618
5618
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5619
|
+
|
|
5620
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
5621
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
5622
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
5623
|
+
ice: event.candidate.candidate,
|
|
5624
|
+
});
|
|
5625
|
+
this.iceGatheringComplete();
|
|
5626
|
+
}
|
|
5619
5627
|
}
|
|
5620
5628
|
};
|
|
5621
5629
|
|
|
@@ -5616,6 +5616,14 @@ class WazoSessionDescriptionHandler extends sessionDescriptionHandler.SessionDes
|
|
|
5616
5616
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
5617
5617
|
if (event.candidate) {
|
|
5618
5618
|
this.gatheredCandidates.push(parseCandidate$1(event.candidate.candidate));
|
|
5619
|
+
|
|
5620
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
5621
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
5622
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
5623
|
+
ice: event.candidate.candidate,
|
|
5624
|
+
});
|
|
5625
|
+
this.iceGatheringComplete();
|
|
5626
|
+
}
|
|
5619
5627
|
}
|
|
5620
5628
|
};
|
|
5621
5629
|
|
|
@@ -885,6 +885,14 @@ class WazoSessionDescriptionHandler extends sessionDescriptionHandler.SessionDes
|
|
|
885
885
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
886
886
|
if (event.candidate) {
|
|
887
887
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
888
|
+
|
|
889
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
890
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
891
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
892
|
+
ice: event.candidate.candidate,
|
|
893
|
+
});
|
|
894
|
+
this.iceGatheringComplete();
|
|
895
|
+
}
|
|
888
896
|
}
|
|
889
897
|
};
|
|
890
898
|
|
|
@@ -885,6 +885,14 @@ class WazoSessionDescriptionHandler extends sessionDescriptionHandler.SessionDes
|
|
|
885
885
|
wazoLogger.trace('onicecandidate', event.candidate ? event.candidate.candidate : { done: true });
|
|
886
886
|
if (event.candidate) {
|
|
887
887
|
this.gatheredCandidates.push(parseCandidate(event.candidate.candidate));
|
|
888
|
+
|
|
889
|
+
// When receiving a `srflx` or a `relay` candidate, consider the negotiation done.
|
|
890
|
+
if (event.candidate.candidate.indexOf('srflx') !== -1 || event.candidate.candidate.indexOf('relay') !== -1) {
|
|
891
|
+
wazoLogger.info('A valid ice was found, triggering ice gathering complete callback.', {
|
|
892
|
+
ice: event.candidate.candidate,
|
|
893
|
+
});
|
|
894
|
+
this.iceGatheringComplete();
|
|
895
|
+
}
|
|
888
896
|
}
|
|
889
897
|
};
|
|
890
898
|
|
|
@@ -100,7 +100,7 @@ describe('Line domain', () => {
|
|
|
100
100
|
username: 'ipcor1pj',
|
|
101
101
|
links: [
|
|
102
102
|
{
|
|
103
|
-
href: 'https://stack.
|
|
103
|
+
href: 'https://stack.example.com/api/confd/1.1/endpoints/sip/19',
|
|
104
104
|
rel: 'endpoint_sip',
|
|
105
105
|
},
|
|
106
106
|
],
|
|
@@ -114,7 +114,7 @@ describe('Line domain', () => {
|
|
|
114
114
|
context: 'default',
|
|
115
115
|
links: [
|
|
116
116
|
{
|
|
117
|
-
href: 'https://stack.
|
|
117
|
+
href: 'https://stack.example.com/api/confd/1.1/extensions/59',
|
|
118
118
|
rel: 'extensions',
|
|
119
119
|
},
|
|
120
120
|
],
|
|
@@ -122,7 +122,7 @@ describe('Line domain', () => {
|
|
|
122
122
|
],
|
|
123
123
|
links: [
|
|
124
124
|
{
|
|
125
|
-
href: 'https://stack.
|
|
125
|
+
href: 'https://stack.example.com/api/confd/1.1/lines/8',
|
|
126
126
|
rel: 'lines',
|
|
127
127
|
},
|
|
128
128
|
],
|
|
@@ -140,7 +140,7 @@ describe('Line domain', () => {
|
|
|
140
140
|
context: 'default',
|
|
141
141
|
links: [
|
|
142
142
|
{
|
|
143
|
-
href: 'https://stack.
|
|
143
|
+
href: 'https://stack.example.com/api/confd/1.1/extensions/59',
|
|
144
144
|
rel: 'extensions',
|
|
145
145
|
},
|
|
146
146
|
],
|
|
@@ -150,7 +150,7 @@ describe('Line domain', () => {
|
|
|
150
150
|
id: 19,
|
|
151
151
|
links: [
|
|
152
152
|
{
|
|
153
|
-
href: 'https://stack.
|
|
153
|
+
href: 'https://stack.example.com/api/confd/1.1/endpoints/sip/19',
|
|
154
154
|
rel: 'endpoint_sip',
|
|
155
155
|
},
|
|
156
156
|
],
|