@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
|
@@ -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],
|
|
@@ -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],
|
|
@@ -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/index.js
CHANGED
|
@@ -6210,6 +6210,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6210
6210
|
|
|
6211
6211
|
|
|
6212
6212
|
|
|
6213
|
+
|
|
6213
6214
|
|
|
6214
6215
|
|
|
6215
6216
|
|
|
@@ -7826,6 +7827,13 @@ class WebRTCClient extends Emitter {
|
|
|
7826
7827
|
}
|
|
7827
7828
|
|
|
7828
7829
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
7830
|
+
let { host } = this.config;
|
|
7831
|
+
let port = this.config.port || 443;
|
|
7832
|
+
|
|
7833
|
+
if (this.config.websocketSip) {
|
|
7834
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
7835
|
+
}
|
|
7836
|
+
|
|
7829
7837
|
const config = {
|
|
7830
7838
|
authorizationUsername: this.config.authorizationUser,
|
|
7831
7839
|
authorizationPassword: this.config.password,
|
|
@@ -7861,7 +7869,7 @@ class WebRTCClient extends Emitter {
|
|
|
7861
7869
|
},
|
|
7862
7870
|
transportOptions: {
|
|
7863
7871
|
traceSip: configOverrides.traceSip || false,
|
|
7864
|
-
wsServers: `wss://${
|
|
7872
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7865
7873
|
},
|
|
7866
7874
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7867
7875
|
modifiers: [replaceLocalIpModifier],
|
package/lib/simple/Auth.js
CHANGED
|
@@ -6385,6 +6385,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6385
6385
|
|
|
6386
6386
|
|
|
6387
6387
|
|
|
6388
|
+
|
|
6388
6389
|
|
|
6389
6390
|
|
|
6390
6391
|
|
|
@@ -8001,6 +8002,13 @@ class WebRTCClient extends Emitter {
|
|
|
8001
8002
|
}
|
|
8002
8003
|
|
|
8003
8004
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8005
|
+
let { host } = this.config;
|
|
8006
|
+
let port = this.config.port || 443;
|
|
8007
|
+
|
|
8008
|
+
if (this.config.websocketSip) {
|
|
8009
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8010
|
+
}
|
|
8011
|
+
|
|
8004
8012
|
const config = {
|
|
8005
8013
|
authorizationUsername: this.config.authorizationUser,
|
|
8006
8014
|
authorizationPassword: this.config.password,
|
|
@@ -8036,7 +8044,7 @@ class WebRTCClient extends Emitter {
|
|
|
8036
8044
|
},
|
|
8037
8045
|
transportOptions: {
|
|
8038
8046
|
traceSip: configOverrides.traceSip || false,
|
|
8039
|
-
wsServers: `wss://${
|
|
8047
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8040
8048
|
},
|
|
8041
8049
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8042
8050
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6383,6 +6383,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6383
6383
|
|
|
6384
6384
|
|
|
6385
6385
|
|
|
6386
|
+
|
|
6386
6387
|
|
|
6387
6388
|
|
|
6388
6389
|
|
|
@@ -7999,6 +8000,13 @@ class WebRTCClient extends Emitter {
|
|
|
7999
8000
|
}
|
|
8000
8001
|
|
|
8001
8002
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8003
|
+
let { host } = this.config;
|
|
8004
|
+
let port = this.config.port || 443;
|
|
8005
|
+
|
|
8006
|
+
if (this.config.websocketSip) {
|
|
8007
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8008
|
+
}
|
|
8009
|
+
|
|
8002
8010
|
const config = {
|
|
8003
8011
|
authorizationUsername: this.config.authorizationUser,
|
|
8004
8012
|
authorizationPassword: this.config.password,
|
|
@@ -8034,7 +8042,7 @@ class WebRTCClient extends Emitter {
|
|
|
8034
8042
|
},
|
|
8035
8043
|
transportOptions: {
|
|
8036
8044
|
traceSip: configOverrides.traceSip || false,
|
|
8037
|
-
wsServers: `wss://${
|
|
8045
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8038
8046
|
},
|
|
8039
8047
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8040
8048
|
modifiers: [replaceLocalIpModifier],
|
package/lib/simple/Phone.js
CHANGED
|
@@ -6383,6 +6383,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6383
6383
|
|
|
6384
6384
|
|
|
6385
6385
|
|
|
6386
|
+
|
|
6386
6387
|
|
|
6387
6388
|
|
|
6388
6389
|
|
|
@@ -7999,6 +8000,13 @@ class WebRTCClient extends Emitter {
|
|
|
7999
8000
|
}
|
|
8000
8001
|
|
|
8001
8002
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8003
|
+
let { host } = this.config;
|
|
8004
|
+
let port = this.config.port || 443;
|
|
8005
|
+
|
|
8006
|
+
if (this.config.websocketSip) {
|
|
8007
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8008
|
+
}
|
|
8009
|
+
|
|
8002
8010
|
const config = {
|
|
8003
8011
|
authorizationUsername: this.config.authorizationUser,
|
|
8004
8012
|
authorizationPassword: this.config.password,
|
|
@@ -8034,7 +8042,7 @@ class WebRTCClient extends Emitter {
|
|
|
8034
8042
|
},
|
|
8035
8043
|
transportOptions: {
|
|
8036
8044
|
traceSip: configOverrides.traceSip || false,
|
|
8037
|
-
wsServers: `wss://${
|
|
8045
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8038
8046
|
},
|
|
8039
8047
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8040
8048
|
modifiers: [replaceLocalIpModifier],
|
package/lib/simple/index.js
CHANGED
|
@@ -6647,6 +6647,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6647
6647
|
|
|
6648
6648
|
|
|
6649
6649
|
|
|
6650
|
+
|
|
6650
6651
|
|
|
6651
6652
|
|
|
6652
6653
|
|
|
@@ -8263,6 +8264,13 @@ class WebRTCClient extends Emitter {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
|
|
8265
8266
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8267
|
+
let { host } = this.config;
|
|
8268
|
+
let port = this.config.port || 443;
|
|
8269
|
+
|
|
8270
|
+
if (this.config.websocketSip) {
|
|
8271
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8266
8274
|
const config = {
|
|
8267
8275
|
authorizationUsername: this.config.authorizationUser,
|
|
8268
8276
|
authorizationPassword: this.config.password,
|
|
@@ -8298,7 +8306,7 @@ class WebRTCClient extends Emitter {
|
|
|
8298
8306
|
},
|
|
8299
8307
|
transportOptions: {
|
|
8300
8308
|
traceSip: configOverrides.traceSip || false,
|
|
8301
|
-
wsServers: `wss://${
|
|
8309
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8302
8310
|
},
|
|
8303
8311
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8304
8312
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6647,6 +6647,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6647
6647
|
|
|
6648
6648
|
|
|
6649
6649
|
|
|
6650
|
+
|
|
6650
6651
|
|
|
6651
6652
|
|
|
6652
6653
|
|
|
@@ -8263,6 +8264,13 @@ class WebRTCClient extends Emitter {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
|
|
8265
8266
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8267
|
+
let { host } = this.config;
|
|
8268
|
+
let port = this.config.port || 443;
|
|
8269
|
+
|
|
8270
|
+
if (this.config.websocketSip) {
|
|
8271
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8266
8274
|
const config = {
|
|
8267
8275
|
authorizationUsername: this.config.authorizationUser,
|
|
8268
8276
|
authorizationPassword: this.config.password,
|
|
@@ -8298,7 +8306,7 @@ class WebRTCClient extends Emitter {
|
|
|
8298
8306
|
},
|
|
8299
8307
|
transportOptions: {
|
|
8300
8308
|
traceSip: configOverrides.traceSip || false,
|
|
8301
|
-
wsServers: `wss://${
|
|
8309
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8302
8310
|
},
|
|
8303
8311
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8304
8312
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6647,6 +6647,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6647
6647
|
|
|
6648
6648
|
|
|
6649
6649
|
|
|
6650
|
+
|
|
6650
6651
|
|
|
6651
6652
|
|
|
6652
6653
|
|
|
@@ -8263,6 +8264,13 @@ class WebRTCClient extends Emitter {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
|
|
8265
8266
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8267
|
+
let { host } = this.config;
|
|
8268
|
+
let port = this.config.port || 443;
|
|
8269
|
+
|
|
8270
|
+
if (this.config.websocketSip) {
|
|
8271
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8266
8274
|
const config = {
|
|
8267
8275
|
authorizationUsername: this.config.authorizationUser,
|
|
8268
8276
|
authorizationPassword: this.config.password,
|
|
@@ -8298,7 +8306,7 @@ class WebRTCClient extends Emitter {
|
|
|
8298
8306
|
},
|
|
8299
8307
|
transportOptions: {
|
|
8300
8308
|
traceSip: configOverrides.traceSip || false,
|
|
8301
|
-
wsServers: `wss://${
|
|
8309
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8302
8310
|
},
|
|
8303
8311
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8304
8312
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6647,6 +6647,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6647
6647
|
|
|
6648
6648
|
|
|
6649
6649
|
|
|
6650
|
+
|
|
6650
6651
|
|
|
6651
6652
|
|
|
6652
6653
|
|
|
@@ -8263,6 +8264,13 @@ class WebRTCClient extends Emitter {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
|
|
8265
8266
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8267
|
+
let { host } = this.config;
|
|
8268
|
+
let port = this.config.port || 443;
|
|
8269
|
+
|
|
8270
|
+
if (this.config.websocketSip) {
|
|
8271
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8266
8274
|
const config = {
|
|
8267
8275
|
authorizationUsername: this.config.authorizationUser,
|
|
8268
8276
|
authorizationPassword: this.config.password,
|
|
@@ -8298,7 +8306,7 @@ class WebRTCClient extends Emitter {
|
|
|
8298
8306
|
},
|
|
8299
8307
|
transportOptions: {
|
|
8300
8308
|
traceSip: configOverrides.traceSip || false,
|
|
8301
|
-
wsServers: `wss://${
|
|
8309
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8302
8310
|
},
|
|
8303
8311
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8304
8312
|
modifiers: [replaceLocalIpModifier],
|
package/lib/simple/room/Room.js
CHANGED
|
@@ -6649,6 +6649,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6649
6649
|
|
|
6650
6650
|
|
|
6651
6651
|
|
|
6652
|
+
|
|
6652
6653
|
|
|
6653
6654
|
|
|
6654
6655
|
|
|
@@ -8265,6 +8266,13 @@ class WebRTCClient extends Emitter {
|
|
|
8265
8266
|
}
|
|
8266
8267
|
|
|
8267
8268
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8269
|
+
let { host } = this.config;
|
|
8270
|
+
let port = this.config.port || 443;
|
|
8271
|
+
|
|
8272
|
+
if (this.config.websocketSip) {
|
|
8273
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8274
|
+
}
|
|
8275
|
+
|
|
8268
8276
|
const config = {
|
|
8269
8277
|
authorizationUsername: this.config.authorizationUser,
|
|
8270
8278
|
authorizationPassword: this.config.password,
|
|
@@ -8300,7 +8308,7 @@ class WebRTCClient extends Emitter {
|
|
|
8300
8308
|
},
|
|
8301
8309
|
transportOptions: {
|
|
8302
8310
|
traceSip: configOverrides.traceSip || false,
|
|
8303
|
-
wsServers: `wss://${
|
|
8311
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8304
8312
|
},
|
|
8305
8313
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8306
8314
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6647,6 +6647,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6647
6647
|
|
|
6648
6648
|
|
|
6649
6649
|
|
|
6650
|
+
|
|
6650
6651
|
|
|
6651
6652
|
|
|
6652
6653
|
|
|
@@ -8263,6 +8264,13 @@ class WebRTCClient extends Emitter {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
|
|
8265
8266
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8267
|
+
let { host } = this.config;
|
|
8268
|
+
let port = this.config.port || 443;
|
|
8269
|
+
|
|
8270
|
+
if (this.config.websocketSip) {
|
|
8271
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8266
8274
|
const config = {
|
|
8267
8275
|
authorizationUsername: this.config.authorizationUser,
|
|
8268
8276
|
authorizationPassword: this.config.password,
|
|
@@ -8298,7 +8306,7 @@ class WebRTCClient extends Emitter {
|
|
|
8298
8306
|
},
|
|
8299
8307
|
transportOptions: {
|
|
8300
8308
|
traceSip: configOverrides.traceSip || false,
|
|
8301
|
-
wsServers: `wss://${
|
|
8309
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8302
8310
|
},
|
|
8303
8311
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8304
8312
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6647,6 +6647,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6647
6647
|
|
|
6648
6648
|
|
|
6649
6649
|
|
|
6650
|
+
|
|
6650
6651
|
|
|
6651
6652
|
|
|
6652
6653
|
|
|
@@ -8263,6 +8264,13 @@ class WebRTCClient extends Emitter {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
|
|
8265
8266
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8267
|
+
let { host } = this.config;
|
|
8268
|
+
let port = this.config.port || 443;
|
|
8269
|
+
|
|
8270
|
+
if (this.config.websocketSip) {
|
|
8271
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8266
8274
|
const config = {
|
|
8267
8275
|
authorizationUsername: this.config.authorizationUser,
|
|
8268
8276
|
authorizationPassword: this.config.password,
|
|
@@ -8298,7 +8306,7 @@ class WebRTCClient extends Emitter {
|
|
|
8298
8306
|
},
|
|
8299
8307
|
transportOptions: {
|
|
8300
8308
|
traceSip: configOverrides.traceSip || false,
|
|
8301
|
-
wsServers: `wss://${
|
|
8309
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8302
8310
|
},
|
|
8303
8311
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8304
8312
|
modifiers: [replaceLocalIpModifier],
|
|
@@ -6647,6 +6647,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6647
6647
|
|
|
6648
6648
|
|
|
6649
6649
|
|
|
6650
|
+
|
|
6650
6651
|
|
|
6651
6652
|
|
|
6652
6653
|
|
|
@@ -8263,6 +8264,13 @@ class WebRTCClient extends Emitter {
|
|
|
8263
8264
|
}
|
|
8264
8265
|
|
|
8265
8266
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8267
|
+
let { host } = this.config;
|
|
8268
|
+
let port = this.config.port || 443;
|
|
8269
|
+
|
|
8270
|
+
if (this.config.websocketSip) {
|
|
8271
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8272
|
+
}
|
|
8273
|
+
|
|
8266
8274
|
const config = {
|
|
8267
8275
|
authorizationUsername: this.config.authorizationUser,
|
|
8268
8276
|
authorizationPassword: this.config.password,
|
|
@@ -8298,7 +8306,7 @@ class WebRTCClient extends Emitter {
|
|
|
8298
8306
|
},
|
|
8299
8307
|
transportOptions: {
|
|
8300
8308
|
traceSip: configOverrides.traceSip || false,
|
|
8301
|
-
wsServers: `wss://${
|
|
8309
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8302
8310
|
},
|
|
8303
8311
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8304
8312
|
modifiers: [replaceLocalIpModifier],
|
package/lib/simple/utils.js
CHANGED
|
@@ -6649,6 +6649,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
6649
6649
|
|
|
6650
6650
|
|
|
6651
6651
|
|
|
6652
|
+
|
|
6652
6653
|
|
|
6653
6654
|
|
|
6654
6655
|
|
|
@@ -8265,6 +8266,13 @@ class WebRTCClient extends Emitter {
|
|
|
8265
8266
|
}
|
|
8266
8267
|
|
|
8267
8268
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
8269
|
+
let { host } = this.config;
|
|
8270
|
+
let port = this.config.port || 443;
|
|
8271
|
+
|
|
8272
|
+
if (this.config.websocketSip) {
|
|
8273
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
8274
|
+
}
|
|
8275
|
+
|
|
8268
8276
|
const config = {
|
|
8269
8277
|
authorizationUsername: this.config.authorizationUser,
|
|
8270
8278
|
authorizationPassword: this.config.password,
|
|
@@ -8300,7 +8308,7 @@ class WebRTCClient extends Emitter {
|
|
|
8300
8308
|
},
|
|
8301
8309
|
transportOptions: {
|
|
8302
8310
|
traceSip: configOverrides.traceSip || false,
|
|
8303
|
-
wsServers: `wss://${
|
|
8311
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
8304
8312
|
},
|
|
8305
8313
|
sessionDescriptionHandlerFactoryOptions: {
|
|
8306
8314
|
modifiers: [replaceLocalIpModifier],
|
package/lib/web-rtc-client.js
CHANGED
|
@@ -5358,6 +5358,7 @@ const MAX_REGISTER_TRIES = 10;
|
|
|
5358
5358
|
|
|
5359
5359
|
|
|
5360
5360
|
|
|
5361
|
+
|
|
5361
5362
|
|
|
5362
5363
|
|
|
5363
5364
|
|
|
@@ -6974,6 +6975,13 @@ class WebRTCClient extends Emitter {
|
|
|
6974
6975
|
}
|
|
6975
6976
|
|
|
6976
6977
|
_createWebRTCConfiguration(configOverrides = {}) {
|
|
6978
|
+
let { host } = this.config;
|
|
6979
|
+
let port = this.config.port || 443;
|
|
6980
|
+
|
|
6981
|
+
if (this.config.websocketSip) {
|
|
6982
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6977
6985
|
const config = {
|
|
6978
6986
|
authorizationUsername: this.config.authorizationUser,
|
|
6979
6987
|
authorizationPassword: this.config.password,
|
|
@@ -7009,7 +7017,7 @@ class WebRTCClient extends Emitter {
|
|
|
7009
7017
|
},
|
|
7010
7018
|
transportOptions: {
|
|
7011
7019
|
traceSip: configOverrides.traceSip || false,
|
|
7012
|
-
wsServers: `wss://${
|
|
7020
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
7013
7021
|
},
|
|
7014
7022
|
sessionDescriptionHandlerFactoryOptions: {
|
|
7015
7023
|
modifiers: [replaceLocalIpModifier],
|
package/package.json
CHANGED
package/src/web-rtc-client.js
CHANGED
|
@@ -87,6 +87,7 @@ type WebRtcConfig = {
|
|
|
87
87
|
displayName: string,
|
|
88
88
|
host: string,
|
|
89
89
|
port?: number,
|
|
90
|
+
websocketSip?: ?string,
|
|
90
91
|
authorizationUser: ?string,
|
|
91
92
|
password: ?string,
|
|
92
93
|
uri: string,
|
|
@@ -1703,6 +1704,13 @@ export default class WebRTCClient extends Emitter {
|
|
|
1703
1704
|
}
|
|
1704
1705
|
|
|
1705
1706
|
_createWebRTCConfiguration(configOverrides: Object = {}) {
|
|
1707
|
+
let { host } = this.config;
|
|
1708
|
+
let port = this.config.port || 443;
|
|
1709
|
+
|
|
1710
|
+
if (this.config.websocketSip) {
|
|
1711
|
+
[host, port = 443] = this.config.websocketSip.split(':');
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1706
1714
|
const config: Object = {
|
|
1707
1715
|
authorizationUsername: this.config.authorizationUser,
|
|
1708
1716
|
authorizationPassword: this.config.password,
|
|
@@ -1738,7 +1746,7 @@ export default class WebRTCClient extends Emitter {
|
|
|
1738
1746
|
},
|
|
1739
1747
|
transportOptions: {
|
|
1740
1748
|
traceSip: configOverrides.traceSip || false,
|
|
1741
|
-
wsServers: `wss://${
|
|
1749
|
+
wsServers: `wss://${host}:${port}/api/asterisk/ws`,
|
|
1742
1750
|
},
|
|
1743
1751
|
sessionDescriptionHandlerFactoryOptions: {
|
|
1744
1752
|
modifiers: [replaceLocalIpModifier],
|