@vgroup/dialbox 0.4.140 → 0.4.142
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.
|
@@ -599,16 +599,16 @@ class ExtensionService {
|
|
|
599
599
|
return this.http.post(environment.apiUrl + '/utilities/ext/ur/generate/conference/token', payload, httpOptions);
|
|
600
600
|
}
|
|
601
601
|
addParticipant(payload) {
|
|
602
|
+
var _a, _b;
|
|
602
603
|
const headers = new HttpHeaders({
|
|
603
604
|
'Content-Type': 'application/json',
|
|
604
605
|
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token'),
|
|
605
|
-
'ip-address': this.ipAddressInfo.ip,
|
|
606
|
-
'ip-country': this.ipAddressInfo.country
|
|
606
|
+
'ip-address': (_a = this.ipAddressInfo) === null || _a === void 0 ? void 0 : _a.ip,
|
|
607
|
+
'ip-country': (_b = this.ipAddressInfo) === null || _b === void 0 ? void 0 : _b.country
|
|
607
608
|
});
|
|
608
609
|
const httpOptions = { headers: headers };
|
|
610
|
+
payload = Object.assign(Object.assign({}, payload), { proxy: this.ipAddressInfo.proxy.toString(), countrycode: this.ipAddressInfo.address.countryCode.toString() });
|
|
609
611
|
console.log(payload, 'payload');
|
|
610
|
-
payload = Object.assign(Object.assign({}, payload), { proxy: this.ipAddressInfo.proxy.toString() });
|
|
611
|
-
payload = Object.assign(Object.assign({}, payload), { countrycode: this.ipAddressInfo.address.countryCode.toString() });
|
|
612
612
|
return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
|
|
613
613
|
}
|
|
614
614
|
holdParticipant(payload) {
|
|
@@ -729,6 +729,7 @@ class ExtensionService {
|
|
|
729
729
|
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
|
|
730
730
|
});
|
|
731
731
|
const httpOptions = { headers: headers };
|
|
732
|
+
payload = Object.assign(Object.assign({}, payload), { ipAddress: this.ipAddressInfo.ip, ipCountry: this.ipAddressInfo.country });
|
|
732
733
|
return this.http.post(environment.apiUrl + `/utilities/twilio/incoming/conference/ip`, payload, httpOptions);
|
|
733
734
|
}
|
|
734
735
|
//sms api
|