@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.
@@ -601,13 +601,12 @@ class ExtensionService {
601
601
  const headers = new HttpHeaders({
602
602
  'Content-Type': 'application/json',
603
603
  'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token'),
604
- 'ip-address': this.ipAddressInfo.ip,
605
- 'ip-country': this.ipAddressInfo.country
604
+ 'ip-address': this.ipAddressInfo?.ip,
605
+ 'ip-country': this.ipAddressInfo?.country
606
606
  });
607
607
  const httpOptions = { headers: headers };
608
+ payload = { ...payload, proxy: this.ipAddressInfo.proxy.toString(), countrycode: this.ipAddressInfo.address.countryCode.toString() };
608
609
  console.log(payload, 'payload');
609
- payload = { ...payload, proxy: this.ipAddressInfo.proxy.toString() };
610
- payload = { ...payload, countrycode: this.ipAddressInfo.address.countryCode.toString() };
611
610
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/add/participant', payload, httpOptions);
612
611
  }
613
612
  holdParticipant(payload) {
@@ -728,6 +727,7 @@ class ExtensionService {
728
727
  'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
729
728
  });
730
729
  const httpOptions = { headers: headers };
730
+ payload = { ...payload, ipAddress: this.ipAddressInfo.ip, ipCountry: this.ipAddressInfo.country };
731
731
  return this.http.post(environment.apiUrl + `/utilities/twilio/incoming/conference/ip`, payload, httpOptions);
732
732
  }
733
733
  //sms api