@vgroup/dialbox 0.4.143 → 0.4.145

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.
@@ -2128,16 +2128,14 @@ class CallProgressComponent {
2128
2128
  route: "OUTGOING",
2129
2129
  participantNumber: callData?.phone,
2130
2130
  conferenceId: this.conferenceId,
2131
- userId: this.userId,
2131
+ userId: this.userId || localStorage.getItem('userId'),
2132
2132
  proxy: '',
2133
2133
  countrycode: '',
2134
2134
  });
2135
2135
  console.log('Initial participantId:', this.addRes?.participantId);
2136
- return true;
2137
2136
  }
2138
2137
  catch (e) {
2139
2138
  console.error('Error adding initial participant:', e);
2140
- return true;
2141
2139
  }
2142
2140
  }, 1000);
2143
2141
  // Poll the status for 30-45 seconds
@@ -3771,6 +3769,18 @@ class DialboxComponent {
3771
3769
  ngOnChanges(changes) {
3772
3770
  if (changes['incomingCallnotification']) {
3773
3771
  console.log('incomingCallnotification', changes['incomingCallnotification'].currentValue);
3772
+ this.isIncomingCallnotification = true;
3773
+ let payload = {
3774
+ recordId: this.incomingCallnotification.participantId,
3775
+ ipAddress: '',
3776
+ ipCountry: '',
3777
+ callStatus: 'answered',
3778
+ deviceId: this.deviceId,
3779
+ conferenceId: this.incomingCallnotification.conferenceId || 'no'
3780
+ };
3781
+ this.extensionService.setIncomingCallStatus(payload).subscribe((res) => {
3782
+ console.log(res);
3783
+ });
3774
3784
  }
3775
3785
  if (changes['deviceId']) {
3776
3786
  localStorage.setItem('deviceId', changes['deviceId'].currentValue);