@vgroup/dialbox 0.3.39 → 0.3.41

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.
@@ -2003,9 +2003,11 @@ class IncomingCallComponent {
2003
2003
  this.extensionService.getRemoveParticipants(this.incomingCallData.participantId, this.incomingCallData.conferenceId).toPromise();
2004
2004
  }
2005
2005
  async add(data) {
2006
- let device = await this.twilioService.connect('');
2007
- console.log(device, 'callConnect');
2008
- if (data?.status == 'ringing') {
2006
+ if (data?.status != 'ringing') {
2007
+ let device = await this.twilioService.connect('');
2008
+ console.log(device, 'callConnect');
2009
+ }
2010
+ else if (data?.status == 'ringing') {
2009
2011
  this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data) => {
2010
2012
  console.log(data, 'bhhhhhhhhhhhhhhhhhhh');
2011
2013
  });
@@ -3254,9 +3256,9 @@ class DialboxComponent {
3254
3256
  if (this.incomingCallsList.length > 1) {
3255
3257
  // /utilities/ext/add/incoming/participant/{participantId}/{conferenceId}
3256
3258
  let data = this.incomingCallsList.filter((item) => item.status == 'ringing');
3257
- this.twilioService.addIncomingParticipant(data[0].id, incomingCallData.conferenceId).subscribe((data) => {
3258
- console.log(data, 'bhhhhhhhhhhhhhhhhhhh');
3259
- });
3259
+ // this.twilioService.addIncomingParticipant(data[0].id, incomingCallData.conferenceId).subscribe((data: any) => {
3260
+ // console.log(data,'bhhhhhhhhhhhhhhhhhhh')
3261
+ // })
3260
3262
  }
3261
3263
  this.isCallInProgress = true;
3262
3264
  this.isDialpadHidden = false;