@vgroup/dialbox 0.4.151 → 0.4.152

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.
@@ -729,8 +729,9 @@ class ExtensionService {
729
729
  'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
730
730
  });
731
731
  return this.ipAddressService.getIpAddressInfo().pipe(switchMap((ipAddressInfo) => {
732
+ var _a;
732
733
  const httpOptions = { headers: headers };
733
- payload = Object.assign(Object.assign({}, payload), { ipAddress: ipAddressInfo === null || ipAddressInfo === void 0 ? void 0 : ipAddressInfo.ip, ipCountry: ipAddressInfo === null || ipAddressInfo === void 0 ? void 0 : ipAddressInfo.country });
734
+ payload = Object.assign(Object.assign({}, payload), { ipAddress: ipAddressInfo === null || ipAddressInfo === void 0 ? void 0 : ipAddressInfo.ip, ipCountry: (_a = ipAddressInfo === null || ipAddressInfo === void 0 ? void 0 : ipAddressInfo.address) === null || _a === void 0 ? void 0 : _a.country });
734
735
  return this.http.post(environment.apiUrl + `/utilities/twilio/incoming/conference/ip`, payload, httpOptions);
735
736
  }), catchError((error) => {
736
737
  // Properly catch errors
@@ -2469,6 +2470,7 @@ class CallProgressComponent {
2469
2470
  // this.call = await this.twilioService.connect('');
2470
2471
  this.twilioService.addIncomingParticipant(data === null || data === void 0 ? void 0 : data.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((res) => {
2471
2472
  console.log(res, 'bhhhhhhhhhhhhhhhhhhh');
2473
+ this.incomeingCallSocketService.pause();
2472
2474
  this.isCurrentIncomingCallList.push((data === null || data === void 0 ? void 0 : data.id) || (data === null || data === void 0 ? void 0 : data.participantId));
2473
2475
  data.isAcceptCall = true;
2474
2476
  // this.currentCall = data;
@@ -2482,6 +2484,7 @@ class CallProgressComponent {
2482
2484
  data.isAcceptCall = true;
2483
2485
  // this.currentCall = data;
2484
2486
  this.setIncomingCallStatus(data);
2487
+ this.incomeingCallSocketService.pause();
2485
2488
  }
2486
2489
  });
2487
2490
  }