@exotel-npm-dev/webrtc-client-sdk 1.0.0 → 1.0.1
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/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/listeners/ExWebClient';
|
package/package.json
CHANGED
package/src/api/callAPI/Call.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CallDetails } from "./CallDetails";
|
|
2
2
|
import { webrtcLogger } from "../omAPI/WebrtcLogger"
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import { webrtcSIPPhone } from '@exotel-npm-dev/webrtc-core-sdk';
|
|
5
5
|
var logger = webrtcLogger()
|
|
6
6
|
|
|
7
7
|
export function Call() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { diagnosticsCallback } from "../../listeners/Callback";
|
|
2
2
|
import { webrtcLogger } from "./WebrtcLogger"
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import { webrtcSIPPhone } from '@exotel-npm-dev/webrtc-core-sdk';
|
|
5
5
|
var logger = webrtcLogger()
|
|
6
6
|
var speakerNode;
|
|
7
7
|
var micNode;
|
|
@@ -21,7 +21,7 @@ import { sessionCallback } from '../listeners/Callback';
|
|
|
21
21
|
import { webrtcTroubleshooterEventBus } from "./Callback";
|
|
22
22
|
|
|
23
23
|
import { webrtcLogger } from "../api/omAPI/WebrtcLogger";
|
|
24
|
-
|
|
24
|
+
import { webrtcSIPPhone } from '@exotel-npm-dev/webrtc-core-sdk';
|
|
25
25
|
|
|
26
26
|
var intervalId;
|
|
27
27
|
var intervalIDMap = new Map();
|
|
@@ -346,11 +346,11 @@ export const ExotelWebClient = {
|
|
|
346
346
|
callEventCallback :(event, phone, param) => {
|
|
347
347
|
logger.log("Dialer: callEventCallback: Received ---> " + event + 'param sent....' + param + 'for phone....' + phone)
|
|
348
348
|
if (event === "i_new_call") {
|
|
349
|
-
callListener.onIncomingCall(param,phone)
|
|
349
|
+
ExotelWebClient.callListener.onIncomingCall(param,phone)
|
|
350
350
|
} else if (event === "connected") {
|
|
351
|
-
callListener.onCallEstablished(param,phone);
|
|
351
|
+
ExotelWebClient.callListener.onCallEstablished(param,phone);
|
|
352
352
|
} else if (event === "terminated") {
|
|
353
|
-
callListener.onCallEnded(param,phone);
|
|
353
|
+
ExotelWebClient.callListener.onCallEnded(param,phone);
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
356
|
|
|
@@ -431,15 +431,15 @@ export const ExotelWebClient = {
|
|
|
431
431
|
|
|
432
432
|
|
|
433
433
|
|
|
434
|
-
ExotelWebClient.sipAccntInfo['userName'] = userName;
|
|
434
|
+
ExotelWebClient.sipAccntInfo['userName'] = ExotelWebClient.userName;
|
|
435
435
|
ExotelWebClient.sipAccntInfo['authUser'] = subscriberName;
|
|
436
436
|
ExotelWebClient.sipAccntInfo['domain'] = hostName;
|
|
437
437
|
ExotelWebClient.sipAccntInfo['sipdomain'] = ExotelWebClient.sipdomain;
|
|
438
|
-
ExotelWebClient.sipAccntInfo['accountName'] = userName;
|
|
438
|
+
ExotelWebClient.sipAccntInfo['accountName'] = ExotelWebClient.userName;
|
|
439
439
|
ExotelWebClient.sipAccntInfo['secret'] = ExotelWebClient.password;
|
|
440
440
|
ExotelWebClient.sipAccntInfo['sipuri'] = ExotelWebClient.sipuri;
|
|
441
441
|
ExotelWebClient.sipAccntInfo['security'] = ExotelWebClient.security;
|
|
442
|
-
ExotelWebClient.sipAccntInfo['port'] =
|
|
442
|
+
ExotelWebClient.sipAccntInfo['port'] = webrtcPort;
|
|
443
443
|
ExotelWebClient.sipAccntInfo['contactHost'] = ExotelWebClient.contactHost;
|
|
444
444
|
localStorage.setItem('contactHost', ExotelWebClient.contactHost);
|
|
445
445
|
/* This is permanent -End */
|
|
@@ -450,7 +450,7 @@ export const ExotelWebClient = {
|
|
|
450
450
|
var synchronousHandler = new ExSynchronousHandler(ExotelWebClient);
|
|
451
451
|
var delegationHandler = new ExDelegationHandler(ExotelWebClient);
|
|
452
452
|
|
|
453
|
-
var userName = userName;
|
|
453
|
+
var userName = ExotelWebClient.userName;
|
|
454
454
|
/* OLD-Way to be revisited for multile phone support */
|
|
455
455
|
//webRTCPhones[userName] = webRTC;
|
|
456
456
|
|