@vgroup/dialbox 0.4.169 → 0.4.171

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.
@@ -2534,7 +2534,7 @@ class CallProgressComponent {
2534
2534
  ipCountry: '',
2535
2535
  callStatus: 'answered',
2536
2536
  deviceId: this.deviceId,
2537
- conferenceId: this.conferenceId || data?.conferenceId || 'no'
2537
+ conferenceId: data?.conferenceId || 'no'
2538
2538
  };
2539
2539
  this.extensionService.setIncomingCallStatus(payload).subscribe(async (res) => {
2540
2540
  this.call = await this.twilioService.connect({ conferenceId: res.conferenceId, conferenceName: res.conferenceName });
@@ -2543,26 +2543,10 @@ class CallProgressComponent {
2543
2543
  data.isAcceptCall = true;
2544
2544
  this.incomeingCallSocketService.pause();
2545
2545
  });
2546
- // }
2547
- // } else if(data?.status == 'ringing'){
2548
- // this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data: any) => {
2549
- // console.log(data,'bhhhhhhhhhhhhhhhhhhh')
2550
- // })
2551
- // }
2552
- // this.device = new Device();/
2553
- // Device.connect({ conferenceName: 'my-conference-room' });
2554
- // this.device = new Device({ conferenceName: 'my-conference-room' });
2555
2546
  }
2556
2547
  async callContact(contact) {
2557
2548
  console.log('Adding participant:', contact);
2558
2549
  console.log('this.call', this.call);
2559
- // console.log('this.call', this.call.status())
2560
- // Check if there's an active call
2561
- // if (!this.call || this.call.status() !== 'open') {
2562
- // console.error('No active call');
2563
- // return;
2564
- // }
2565
- // Get the phone number from the contact
2566
2550
  const phoneNumber = contact?.numbersList?.[0]?.number || contact?.phone;
2567
2551
  const currentCall = this.currentCallList.find((c) => c?.phone === phoneNumber);
2568
2552
  if (!phoneNumber || currentCall) {