@exotel-npm-dev/webrtc-client-sdk 1.0.13 → 1.0.14
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/Changelog +4 -0
- package/dist/exotelsdk.js +22 -2
- package/dist/exotelsdk.js.map +1 -1
- package/package.json +1 -1
- package/src/api/callAPI/CallDetails.js +31 -27
- package/src/listeners/ExWebClient.js +15 -0
package/Changelog
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
Change Log
|
|
2
|
+
|
|
3
|
+
## v1.0.14 12 September, 2024
|
|
4
|
+
-[VST-807] Added call details with callsid and sip headers
|
|
5
|
+
|
|
2
6
|
## v1.0.12 01 September, 2024
|
|
3
7
|
-[VST-807] Added real-time selection for microphone and speaker devices, and implemented callbacks to notify the application when a device change occurs. also added logger callback
|
|
4
8
|
|
package/dist/exotelsdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* WebRTC CLient SIP version 1.0.
|
|
3
|
+
* WebRTC CLient SIP version 1.0.14
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -22685,6 +22685,8 @@ var CallDetails = {
|
|
|
22685
22685
|
callAnswerTime: '',
|
|
22686
22686
|
callEndReason: '',
|
|
22687
22687
|
sessionId: '',
|
|
22688
|
+
callSid: '',
|
|
22689
|
+
sipHeaders: {},
|
|
22688
22690
|
setCallDetails: function (callId, remoteId, remoteDisplayName, callDirection, callState, callDuration, callStartedTime, callEstablishedTime, callEndedTime, callAnswerTime, callEndReason, sessionId) {
|
|
22689
22691
|
this.callId = callId;
|
|
22690
22692
|
this.remoteId = remoteId;
|
|
@@ -22739,7 +22741,9 @@ var CallDetails = {
|
|
|
22739
22741
|
callEndedTime: this.callEndedTime,
|
|
22740
22742
|
callAnswerTime: this.callAnswerTime,
|
|
22741
22743
|
callEndReason: this.callEndReason,
|
|
22742
|
-
sessionId: this.sessionId
|
|
22744
|
+
sessionId: this.sessionId,
|
|
22745
|
+
callSid: this.callSid,
|
|
22746
|
+
sipHeaders: this.sipHeaders
|
|
22743
22747
|
};
|
|
22744
22748
|
return callDetailsObj;
|
|
22745
22749
|
}
|
|
@@ -23793,6 +23797,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23793
23797
|
/* harmony import */ var _api_omAPI_DiagnosticsListener__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../api/omAPI/DiagnosticsListener */ "./src/api/omAPI/DiagnosticsListener.js");
|
|
23794
23798
|
/* harmony import */ var _listeners_Callback__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Callback */ "./src/listeners/Callback.js");
|
|
23795
23799
|
/* harmony import */ var _exotel_npm_dev_webrtc_core_sdk__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @exotel-npm-dev/webrtc-core-sdk */ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/index.js");
|
|
23800
|
+
/* harmony import */ var _api_callAPI_CallDetails__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../api/callAPI/CallDetails */ "./src/api/callAPI/CallDetails.js");
|
|
23801
|
+
|
|
23796
23802
|
|
|
23797
23803
|
|
|
23798
23804
|
|
|
@@ -23920,6 +23926,20 @@ function ExDelegationHandler(exClient_) {
|
|
|
23920
23926
|
this.onRecieveInvite = function (incomingSession) {
|
|
23921
23927
|
logger.log("delegationHandler: onRecieveInvite\n");
|
|
23922
23928
|
exClient.callFromNumber = incomingSession.incomingInviteRequest.message.from.displayName;
|
|
23929
|
+
_api_callAPI_CallDetails__WEBPACK_IMPORTED_MODULE_9__.CallDetails.callSid = incomingSession.incomingInviteRequest.message.headers['X-Exotel-Callsid'][0].raw;
|
|
23930
|
+
_api_callAPI_CallDetails__WEBPACK_IMPORTED_MODULE_9__.CallDetails.callId = incomingSession.incomingInviteRequest.message.headers['Call-ID'][0].raw;
|
|
23931
|
+
const result = {};
|
|
23932
|
+
const obj = incomingSession.incomingInviteRequest.message.headers;
|
|
23933
|
+
for (let key in obj) {
|
|
23934
|
+
if (obj.hasOwnProperty(key)) {
|
|
23935
|
+
if (obj[key].length == 1) {
|
|
23936
|
+
result[key] = obj[key][0].raw;
|
|
23937
|
+
} else if (obj[key].length > 1) {
|
|
23938
|
+
result[key] = obj[key].map(item => item.raw);
|
|
23939
|
+
}
|
|
23940
|
+
}
|
|
23941
|
+
}
|
|
23942
|
+
_api_callAPI_CallDetails__WEBPACK_IMPORTED_MODULE_9__.CallDetails.sipHeaders = result;
|
|
23923
23943
|
};
|
|
23924
23944
|
this.onPickCall = function () {
|
|
23925
23945
|
logger.log("delegationHandler: onPickCall\n");
|