@vgroup/dialbox 0.5.11 → 0.5.13

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.
@@ -1985,15 +1985,15 @@ class CallProgressComponent {
1985
1985
  this.isRinging = false;
1986
1986
  this.isConcurrentIncoming = false;
1987
1987
  this.incomingCallDiv = false;
1988
- this.call.disconnect();
1989
- this.cdr.detectChanges();
1990
1988
  this.currentCallList = [];
1991
1989
  this.currentCall = {};
1992
1990
  this.isRinging = false;
1993
1991
  this.isCallInProgress = false;
1994
- // this.twilioService.device.disconnectAll()
1995
1992
  this.isConferenceCallHold = false;
1996
1993
  this.stopTimer();
1994
+ this.call.disconnect();
1995
+ this.cdr.detectChanges();
1996
+ // this.twilioService.device.disconnectAll()
1997
1997
  this.endCallEvent.emit();
1998
1998
  }
1999
1999
  }
@@ -3838,15 +3838,18 @@ class DialboxComponent {
3838
3838
  console.log(',,,,,', this.incomingCallnotification);
3839
3839
  if (this.incomingCallnotification.data.content == "IncomingCall") {
3840
3840
  let callerInfo;
3841
- if (this.incomingCallnotification.data.data?.c2cBusiness == 'false') {
3842
- this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
3843
- console.log('uesrInfo', resInfo);
3844
- callerInfo = resInfo.c2cInformation;
3845
- this.incomingCallNotification(callerInfo);
3846
- });
3847
- }
3848
- else {
3849
- this.incomingCallNotification({});
3841
+ let numberList = this.callerIdList.map((res) => res.number);
3842
+ if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
3843
+ if (this.incomingCallnotification.data.data?.c2cBusiness == 'false') {
3844
+ this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
3845
+ console.log('uesrInfo', resInfo);
3846
+ callerInfo = resInfo.c2cInformation;
3847
+ this.incomingCallNotification(callerInfo);
3848
+ });
3849
+ }
3850
+ else {
3851
+ this.incomingCallNotification({});
3852
+ }
3850
3853
  }
3851
3854
  }
3852
3855
  else if (this.incomingCallnotification.data.content == "Missed Call") {