@exotel-npm-dev/webrtc-client-sdk 1.0.1 → 1.0.2
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/package.json
CHANGED
|
@@ -386,7 +386,7 @@ export const ExotelWebClient = {
|
|
|
386
386
|
sipAccountInfo) => {
|
|
387
387
|
|
|
388
388
|
let wssPort = sipAccountInfo.port;
|
|
389
|
-
let wsPort =
|
|
389
|
+
let wsPort = 8089;
|
|
390
390
|
ExotelWebClient.sipAccntInfo = {
|
|
391
391
|
'userName':'',
|
|
392
392
|
'authUser':'',
|
|
@@ -397,6 +397,7 @@ export const ExotelWebClient = {
|
|
|
397
397
|
'secret':'',
|
|
398
398
|
'sipUri':'',
|
|
399
399
|
'security':'',
|
|
400
|
+
'endpoint':'',
|
|
400
401
|
'port':'',
|
|
401
402
|
'contactHost':''
|
|
402
403
|
}
|
|
@@ -414,7 +415,7 @@ export const ExotelWebClient = {
|
|
|
414
415
|
ExotelWebClient.accountSid = 'exotelt1';
|
|
415
416
|
ExotelWebClient.subscriberToken = sipAccountInfo.secret;
|
|
416
417
|
ExotelWebClient.secret = ExotelWebClient.password = sipAccountInfo.secret;
|
|
417
|
-
ExotelWebClient.
|
|
418
|
+
ExotelWebClient.endpoint = sipAccountInfo.endpoint;
|
|
418
419
|
ExotelWebClient.port = sipAccountInfo.port;
|
|
419
420
|
ExotelWebClient.contactHost = sipAccountInfo.contactHost;
|
|
420
421
|
ExotelWebClient.sipWsPort = 5061;
|
|
@@ -423,11 +424,12 @@ export const ExotelWebClient = {
|
|
|
423
424
|
/* Temporary till we figure out the arguments - End */
|
|
424
425
|
|
|
425
426
|
/* This is permanent -Start */
|
|
426
|
-
let webrtcPort =
|
|
427
|
+
let webrtcPort = wsPort;
|
|
427
428
|
|
|
428
|
-
if (ExotelWebClient.
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
if (ExotelWebClient.endpoint === 'wss') {
|
|
430
|
+
ExotelWebClient.security = 'wss';
|
|
431
|
+
webrtcPort = wssPort;
|
|
432
|
+
}
|
|
431
433
|
|
|
432
434
|
|
|
433
435
|
|
|
@@ -439,6 +441,7 @@ export const ExotelWebClient = {
|
|
|
439
441
|
ExotelWebClient.sipAccntInfo['secret'] = ExotelWebClient.password;
|
|
440
442
|
ExotelWebClient.sipAccntInfo['sipuri'] = ExotelWebClient.sipuri;
|
|
441
443
|
ExotelWebClient.sipAccntInfo['security'] = ExotelWebClient.security;
|
|
444
|
+
ExotelWebClient.sipAccntInfo['endpoint'] = ExotelWebClient.endpoint;
|
|
442
445
|
ExotelWebClient.sipAccntInfo['port'] = webrtcPort;
|
|
443
446
|
ExotelWebClient.sipAccntInfo['contactHost'] = ExotelWebClient.contactHost;
|
|
444
447
|
localStorage.setItem('contactHost', ExotelWebClient.contactHost);
|