@wazo/sdk 0.37.29 → 0.37.30
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 +2 -1
- package/dist/wazo-sdk.js +1 -1
- package/esm/__tests__/web-rtc-client.test.js +9 -1
- package/esm/checker/Checker.js +9 -1
- package/esm/checker/checks/index.js +9 -1
- package/esm/checker/checks/webrtc-transport.js +9 -1
- package/esm/checker/checks/webrtc.js +9 -1
- package/esm/index.js +9 -1
- package/esm/simple/Auth.js +9 -1
- package/esm/simple/Configuration.js +9 -1
- package/esm/simple/Phone.js +9 -1
- package/esm/simple/index.js +9 -1
- package/esm/simple/room/LocalParticipant.js +9 -1
- package/esm/simple/room/Participant.js +9 -1
- package/esm/simple/room/RemoteParticipant.js +9 -1
- package/esm/simple/room/Room.js +9 -1
- package/esm/simple/room/SipRoom.js +9 -1
- package/esm/simple/room/Stream.js +9 -1
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +9 -1
- package/esm/simple/utils.js +9 -1
- package/esm/web-rtc-client.js +9 -1
- package/lib/__tests__/web-rtc-client.test.js +9 -1
- package/lib/checker/Checker.js +9 -1
- package/lib/checker/checks/index.js +9 -1
- package/lib/checker/checks/webrtc-transport.js +9 -1
- package/lib/checker/checks/webrtc.js +9 -1
- package/lib/index.js +9 -1
- package/lib/simple/Auth.js +9 -1
- package/lib/simple/Configuration.js +9 -1
- package/lib/simple/Phone.js +9 -1
- package/lib/simple/index.js +9 -1
- package/lib/simple/room/LocalParticipant.js +9 -1
- package/lib/simple/room/Participant.js +9 -1
- package/lib/simple/room/RemoteParticipant.js +9 -1
- package/lib/simple/room/Room.js +9 -1
- package/lib/simple/room/SipRoom.js +9 -1
- package/lib/simple/room/Stream.js +9 -1
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +9 -1
- package/lib/simple/utils.js +9 -1
- package/lib/web-rtc-client.js +9 -1
- package/package.json +1 -1
- package/src/web-rtc-client.js +9 -1
|
@@ -5344,6 +5344,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5344
5344
|
|
|
5345
5345
|
|
|
5346
5346
|
|
|
5347
|
+
|
|
5347
5348
|
|
|
5348
5349
|
|
|
5349
5350
|
|
|
@@ -6960,6 +6961,13 @@ class WebRTCClient extends Emitter {
|
|
|
6960
6961
|
}
|
|
6961
6962
|
|
|
6962
6963
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
6964
|
+
let { host } = this.config;
|
|
6965
|
+
let port = this.config.port || 443;
|
|
6966
|
+
|
|
6967
|
+
if (this.config.websocketSip) {
|
|
6968
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
6969
|
+
}
|
|
6970
|
+
|
|
6963
6971
|
const config = {
|
|
6964
6972
|
authorizationUsername: this.config.authorizationUser,
|
|
6965
6973
|
authorizationPassword: this.config.password,
|
|
@@ -6995,7 +7003,7 @@ class WebRTCClient extends Emitter {
|
|
|
6995
7003
|
},
|
|
6996
7004
|
transportOptions: {
|
|
6997
7005
|
traceSip: configOverrides.traceSip || false,
|
|
6998
|
-
wsServers: `wss://${
|
|
7006
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
6999
7007
|
},
|
|
7000
7008
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7001
7009
|
modifiers: [replaceLocalIpModifier],
|
package/esm/checker/Checker.js
CHANGED
|
@@ -5929,6 +5929,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5929
5929
|
|
|
5930
5930
|
|
|
5931
5931
|
|
|
5932
|
+
|
|
5932
5933
|
|
|
5933
5934
|
|
|
5934
5935
|
|
|
@@ -7545,6 +7546,13 @@ class WebRTCClient extends Emitter {
|
|
|
7545
7546
|
}
|
|
7546
7547
|
|
|
7547
7548
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7549
|
+
let { host } = this.config;
|
|
7550
|
+
let port = this.config.port || 443;
|
|
7551
|
+
|
|
7552
|
+
if (this.config.websocketSip) {
|
|
7553
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7554
|
+
}
|
|
7555
|
+
|
|
7548
7556
|
const config = {
|
|
7549
7557
|
authorizationUsername: this.config.authorizationUser,
|
|
7550
7558
|
authorizationPassword: this.config.password,
|
|
@@ -7580,7 +7588,7 @@ class WebRTCClient extends Emitter {
|
|
|
7580
7588
|
},
|
|
7581
7589
|
transportOptions: {
|
|
7582
7590
|
traceSip: configOverrides.traceSip || false,
|
|
7583
|
-
wsServers: `wss://${
|
|
7591
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7584
7592
|
},
|
|
7585
7593
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7586
7594
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -5929,6 +5929,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5929
5929
|
|
|
5930
5930
|
|
|
5931
5931
|
|
|
5932
|
+
|
|
5932
5933
|
|
|
5933
5934
|
|
|
5934
5935
|
|
|
@@ -7545,6 +7546,13 @@ class WebRTCClient extends Emitter {
|
|
|
7545
7546
|
}
|
|
7546
7547
|
|
|
7547
7548
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7549
|
+
let { host } = this.config;
|
|
7550
|
+
let port = this.config.port || 443;
|
|
7551
|
+
|
|
7552
|
+
if (this.config.websocketSip) {
|
|
7553
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7554
|
+
}
|
|
7555
|
+
|
|
7548
7556
|
const config = {
|
|
7549
7557
|
authorizationUsername: this.config.authorizationUser,
|
|
7550
7558
|
authorizationPassword: this.config.password,
|
|
@@ -7580,7 +7588,7 @@ class WebRTCClient extends Emitter {
|
|
|
7580
7588
|
},
|
|
7581
7589
|
transportOptions: {
|
|
7582
7590
|
traceSip: configOverrides.traceSip || false,
|
|
7583
|
-
wsServers: `wss://${
|
|
7591
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7584
7592
|
},
|
|
7585
7593
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7586
7594
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -5344,6 +5344,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5344
5344
|
|
|
5345
5345
|
|
|
5346
5346
|
|
|
5347
|
+
|
|
5347
5348
|
|
|
5348
5349
|
|
|
5349
5350
|
|
|
@@ -6960,6 +6961,13 @@ class WebRTCClient extends Emitter {
|
|
|
6960
6961
|
}
|
|
6961
6962
|
|
|
6962
6963
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
6964
|
+
let { host } = this.config;
|
|
6965
|
+
let port = this.config.port || 443;
|
|
6966
|
+
|
|
6967
|
+
if (this.config.websocketSip) {
|
|
6968
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
6969
|
+
}
|
|
6970
|
+
|
|
6963
6971
|
const config = {
|
|
6964
6972
|
authorizationUsername: this.config.authorizationUser,
|
|
6965
6973
|
authorizationPassword: this.config.password,
|
|
@@ -6995,7 +7003,7 @@ class WebRTCClient extends Emitter {
|
|
|
6995
7003
|
},
|
|
6996
7004
|
transportOptions: {
|
|
6997
7005
|
traceSip: configOverrides.traceSip || false,
|
|
6998
|
-
wsServers: `wss://${
|
|
7006
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
6999
7007
|
},
|
|
7000
7008
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7001
7009
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -5344,6 +5344,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5344
5344
|
|
|
5345
5345
|
|
|
5346
5346
|
|
|
5347
|
+
|
|
5347
5348
|
|
|
5348
5349
|
|
|
5349
5350
|
|
|
@@ -6960,6 +6961,13 @@ class WebRTCClient extends Emitter {
|
|
|
6960
6961
|
}
|
|
6961
6962
|
|
|
6962
6963
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
6964
|
+
let { host } = this.config;
|
|
6965
|
+
let port = this.config.port || 443;
|
|
6966
|
+
|
|
6967
|
+
if (this.config.websocketSip) {
|
|
6968
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
6969
|
+
}
|
|
6970
|
+
|
|
6963
6971
|
const config = {
|
|
6964
6972
|
authorizationUsername: this.config.authorizationUser,
|
|
6965
6973
|
authorizationPassword: this.config.password,
|
|
@@ -6995,7 +7003,7 @@ class WebRTCClient extends Emitter {
|
|
|
6995
7003
|
},
|
|
6996
7004
|
transportOptions: {
|
|
6997
7005
|
traceSip: configOverrides.traceSip || false,
|
|
6998
|
-
wsServers: `wss://${
|
|
7006
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
6999
7007
|
},
|
|
7000
7008
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7001
7009
|
modifiers: [replaceLocalIpModifier],
|
package/esm/index.js
CHANGED
|
@@ -6199,6 +6199,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6199
6199
|
|
|
6200
6200
|
|
|
6201
6201
|
|
|
6202
|
+
|
|
6202
6203
|
|
|
6203
6204
|
|
|
6204
6205
|
|
|
@@ -7815,6 +7816,13 @@ class WebRTCClient extends Emitter {
|
|
|
7815
7816
|
}
|
|
7816
7817
|
|
|
7817
7818
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7819
|
+
let { host } = this.config;
|
|
7820
|
+
let port = this.config.port || 443;
|
|
7821
|
+
|
|
7822
|
+
if (this.config.websocketSip) {
|
|
7823
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7824
|
+
}
|
|
7825
|
+
|
|
7818
7826
|
const config = {
|
|
7819
7827
|
authorizationUsername: this.config.authorizationUser,
|
|
7820
7828
|
authorizationPassword: this.config.password,
|
|
@@ -7850,7 +7858,7 @@ class WebRTCClient extends Emitter {
|
|
|
7850
7858
|
},
|
|
7851
7859
|
transportOptions: {
|
|
7852
7860
|
traceSip: configOverrides.traceSip || false,
|
|
7853
|
-
wsServers: `wss://${
|
|
7861
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7854
7862
|
},
|
|
7855
7863
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7856
7864
|
modifiers: [replaceLocalIpModifier],
|
package/esm/simple/Auth.js
CHANGED
|
@@ -6373,6 +6373,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6373
6373
|
|
|
6374
6374
|
|
|
6375
6375
|
|
|
6376
|
+
|
|
6376
6377
|
|
|
6377
6378
|
|
|
6378
6379
|
|
|
@@ -7989,6 +7990,13 @@ class WebRTCClient extends Emitter {
|
|
|
7989
7990
|
}
|
|
7990
7991
|
|
|
7991
7992
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7993
|
+
let { host } = this.config;
|
|
7994
|
+
let port = this.config.port || 443;
|
|
7995
|
+
|
|
7996
|
+
if (this.config.websocketSip) {
|
|
7997
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7998
|
+
}
|
|
7999
|
+
|
|
7992
8000
|
const config = {
|
|
7993
8001
|
authorizationUsername: this.config.authorizationUser,
|
|
7994
8002
|
authorizationPassword: this.config.password,
|
|
@@ -8024,7 +8032,7 @@ class WebRTCClient extends Emitter {
|
|
|
8024
8032
|
},
|
|
8025
8033
|
transportOptions: {
|
|
8026
8034
|
traceSip: configOverrides.traceSip || false,
|
|
8027
|
-
wsServers: `wss://${
|
|
8035
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8028
8036
|
},
|
|
8029
8037
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8030
8038
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6373,6 +6373,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6373
6373
|
|
|
6374
6374
|
|
|
6375
6375
|
|
|
6376
|
+
|
|
6376
6377
|
|
|
6377
6378
|
|
|
6378
6379
|
|
|
@@ -7989,6 +7990,13 @@ class WebRTCClient extends Emitter {
|
|
|
7989
7990
|
}
|
|
7990
7991
|
|
|
7991
7992
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7993
|
+
let { host } = this.config;
|
|
7994
|
+
let port = this.config.port || 443;
|
|
7995
|
+
|
|
7996
|
+
if (this.config.websocketSip) {
|
|
7997
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7998
|
+
}
|
|
7999
|
+
|
|
7992
8000
|
const config = {
|
|
7993
8001
|
authorizationUsername: this.config.authorizationUser,
|
|
7994
8002
|
authorizationPassword: this.config.password,
|
|
@@ -8024,7 +8032,7 @@ class WebRTCClient extends Emitter {
|
|
|
8024
8032
|
},
|
|
8025
8033
|
transportOptions: {
|
|
8026
8034
|
traceSip: configOverrides.traceSip || false,
|
|
8027
|
-
wsServers: `wss://${
|
|
8035
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8028
8036
|
},
|
|
8029
8037
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8030
8038
|
modifiers: [replaceLocalIpModifier],
|
package/esm/simple/Phone.js
CHANGED
|
@@ -6373,6 +6373,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6373
6373
|
|
|
6374
6374
|
|
|
6375
6375
|
|
|
6376
|
+
|
|
6376
6377
|
|
|
6377
6378
|
|
|
6378
6379
|
|
|
@@ -7989,6 +7990,13 @@ class WebRTCClient extends Emitter {
|
|
|
7989
7990
|
}
|
|
7990
7991
|
|
|
7991
7992
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7993
|
+
let { host } = this.config;
|
|
7994
|
+
let port = this.config.port || 443;
|
|
7995
|
+
|
|
7996
|
+
if (this.config.websocketSip) {
|
|
7997
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7998
|
+
}
|
|
7999
|
+
|
|
7992
8000
|
const config = {
|
|
7993
8001
|
authorizationUsername: this.config.authorizationUser,
|
|
7994
8002
|
authorizationPassword: this.config.password,
|
|
@@ -8024,7 +8032,7 @@ class WebRTCClient extends Emitter {
|
|
|
8024
8032
|
},
|
|
8025
8033
|
transportOptions: {
|
|
8026
8034
|
traceSip: configOverrides.traceSip || false,
|
|
8027
|
-
wsServers: `wss://${
|
|
8035
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8028
8036
|
},
|
|
8029
8037
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8030
8038
|
modifiers: [replaceLocalIpModifier],
|
package/esm/simple/index.js
CHANGED
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
package/esm/simple/room/Room.js
CHANGED
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
package/esm/simple/utils.js
CHANGED
|
@@ -6637,6 +6637,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6637
6637
|
|
|
6638
6638
|
|
|
6639
6639
|
|
|
6640
|
+
|
|
6640
6641
|
|
|
6641
6642
|
|
|
6642
6643
|
|
|
@@ -8253,6 +8254,13 @@ class WebRTCClient extends Emitter {
|
|
|
8253
8254
|
}
|
|
8254
8255
|
|
|
8255
8256
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8257
|
+
let { host } = this.config;
|
|
8258
|
+
let port = this.config.port || 443;
|
|
8259
|
+
|
|
8260
|
+
if (this.config.websocketSip) {
|
|
8261
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8262
|
+
}
|
|
8263
|
+
|
|
8256
8264
|
const config = {
|
|
8257
8265
|
authorizationUsername: this.config.authorizationUser,
|
|
8258
8266
|
authorizationPassword: this.config.password,
|
|
@@ -8288,7 +8296,7 @@ class WebRTCClient extends Emitter {
|
|
|
8288
8296
|
},
|
|
8289
8297
|
transportOptions: {
|
|
8290
8298
|
traceSip: configOverrides.traceSip || false,
|
|
8291
|
-
wsServers: `wss://${
|
|
8299
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8292
8300
|
},
|
|
8293
8301
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8294
8302
|
modifiers: [replaceLocalIpModifier],
|
package/esm/web-rtc-client.js
CHANGED
|
@@ -5347,6 +5347,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5347
5347
|
|
|
5348
5348
|
|
|
5349
5349
|
|
|
5350
|
+
|
|
5350
5351
|
|
|
5351
5352
|
|
|
5352
5353
|
|
|
@@ -6963,6 +6964,13 @@ class WebRTCClient extends Emitter {
|
|
|
6963
6964
|
}
|
|
6964
6965
|
|
|
6965
6966
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
6967
|
+
let { host } = this.config;
|
|
6968
|
+
let port = this.config.port || 443;
|
|
6969
|
+
|
|
6970
|
+
if (this.config.websocketSip) {
|
|
6971
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
6972
|
+
}
|
|
6973
|
+
|
|
6966
6974
|
const config = {
|
|
6967
6975
|
authorizationUsername: this.config.authorizationUser,
|
|
6968
6976
|
authorizationPassword: this.config.password,
|
|
@@ -6998,7 +7006,7 @@ class WebRTCClient extends Emitter {
|
|
|
6998
7006
|
},
|
|
6999
7007
|
transportOptions: {
|
|
7000
7008
|
traceSip: configOverrides.traceSip || false,
|
|
7001
|
-
wsServers: `wss://${
|
|
7009
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7002
7010
|
},
|
|
7003
7011
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7004
7012
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -5353,6 +5353,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5353
5353
|
|
|
5354
5354
|
|
|
5355
5355
|
|
|
5356
|
+
|
|
5356
5357
|
|
|
5357
5358
|
|
|
5358
5359
|
|
|
@@ -6969,6 +6970,13 @@ class WebRTCClient extends Emitter {
|
|
|
6969
6970
|
}
|
|
6970
6971
|
|
|
6971
6972
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
6973
|
+
let { host } = this.config;
|
|
6974
|
+
let port = this.config.port || 443;
|
|
6975
|
+
|
|
6976
|
+
if (this.config.websocketSip) {
|
|
6977
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
6978
|
+
}
|
|
6979
|
+
|
|
6972
6980
|
const config = {
|
|
6973
6981
|
authorizationUsername: this.config.authorizationUser,
|
|
6974
6982
|
authorizationPassword: this.config.password,
|
|
@@ -7004,7 +7012,7 @@ class WebRTCClient extends Emitter {
|
|
|
7004
7012
|
},
|
|
7005
7013
|
transportOptions: {
|
|
7006
7014
|
traceSip: configOverrides.traceSip || false,
|
|
7007
|
-
wsServers: `wss://${
|
|
7015
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7008
7016
|
},
|
|
7009
7017
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7010
7018
|
modifiers: [replaceLocalIpModifier],
|
package/lib/checker/Checker.js
CHANGED
|
@@ -5939,6 +5939,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5939
5939
|
|
|
5940
5940
|
|
|
5941
5941
|
|
|
5942
|
+
|
|
5942
5943
|
|
|
5943
5944
|
|
|
5944
5945
|
|
|
@@ -7555,6 +7556,13 @@ class WebRTCClient extends Emitter {
|
|
|
7555
7556
|
}
|
|
7556
7557
|
|
|
7557
7558
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7559
|
+
let { host } = this.config;
|
|
7560
|
+
let port = this.config.port || 443;
|
|
7561
|
+
|
|
7562
|
+
if (this.config.websocketSip) {
|
|
7563
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7564
|
+
}
|
|
7565
|
+
|
|
7558
7566
|
const config = {
|
|
7559
7567
|
authorizationUsername: this.config.authorizationUser,
|
|
7560
7568
|
authorizationPassword: this.config.password,
|
|
@@ -7590,7 +7598,7 @@ class WebRTCClient extends Emitter {
|
|
|
7590
7598
|
},
|
|
7591
7599
|
transportOptions: {
|
|
7592
7600
|
traceSip: configOverrides.traceSip || false,
|
|
7593
|
-
wsServers: `wss://${
|
|
7601
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7594
7602
|
},
|
|
7595
7603
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7596
7604
|
modifiers: [replaceLocalIpModifier],
|