@exotel-npm-dev/webrtc-client-sdk 1.0.19 → 1.0.21
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 +6 -0
- package/dist/exotelsdk.js +19 -7
- package/dist/exotelsdk.js.map +1 -1
- package/package.json +2 -2
- package/src/listeners/ExWebClient.js +10 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exotel-npm-dev/webrtc-client-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "client sdk for webrtc based on webrtc core sdk",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"webpack-cli": "^4.10.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@exotel-npm-dev/webrtc-core-sdk": "^1.0.
|
|
32
|
+
"@exotel-npm-dev/webrtc-core-sdk": "^1.0.18"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -147,11 +147,18 @@ export function ExDelegationHandler(exClient_) {
|
|
|
147
147
|
|
|
148
148
|
this.onRecieveInvite = function (incomingSession) {
|
|
149
149
|
logger.log("delegationHandler: onRecieveInvite\n");
|
|
150
|
+
const obj = incomingSession.incomingInviteRequest.message.headers;
|
|
150
151
|
exClient.callFromNumber = incomingSession.incomingInviteRequest.message.from.displayName;
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
if (obj.hasOwnProperty("X-Exotel-Callsid")) {
|
|
153
|
+
CallDetails.callSid = obj['X-Exotel-Callsid'][0].raw;
|
|
154
|
+
}
|
|
155
|
+
if (obj.hasOwnProperty("Call-ID")) {
|
|
156
|
+
CallDetails.callId = obj['Call-ID'][0].raw;
|
|
157
|
+
}
|
|
158
|
+
if (obj.hasOwnProperty("LegSid")) {
|
|
159
|
+
CallDetails.legSid = obj['LegSid'][0].raw;
|
|
160
|
+
}
|
|
153
161
|
const result = {};
|
|
154
|
-
const obj = incomingSession.incomingInviteRequest.message.headers;
|
|
155
162
|
for (let key in obj) {
|
|
156
163
|
if (obj.hasOwnProperty(key)) {
|
|
157
164
|
if (obj[key].length == 1) {
|