@vgroup/dialbox 0.7.59 → 0.7.62

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.
@@ -1556,6 +1556,7 @@ class TwilioService {
1556
1556
  this.refreshDeviceToken();
1557
1557
  });
1558
1558
  this.device.on('incoming', (call) => {
1559
+ console.log('Twilio Device incoming call event:', call);
1559
1560
  if (this.acceptedCallList.length > 0 || this.primaryHasCall) {
1560
1561
  console.log('primary device: concurrent call arriving – spare device will handle it');
1561
1562
  this.isShowIncomingCall = true;
@@ -4579,6 +4580,14 @@ class DialboxComponent {
4579
4580
  this.twilioService.conferenceCallInfo = incomingCallData;
4580
4581
  this.conferenceCallList.emit(incomingCallData);
4581
4582
  this.token = localStorage.getItem('ext_token') || '';
4583
+ console.log('incomingCallData 235', incomingCallData);
4584
+ incomingCallData.forEach((callInfo) => {
4585
+ // Check if WE are an active participant in this conference
4586
+ if (!callInfo?.participants?.length && !this.nullParticipantCallList.includes(callInfo?.conferenceId)) {
4587
+ this.nullParticipantCallList.push(callInfo?.conferenceId);
4588
+ swal("Error", 'Call not connected facing some issue', "error");
4589
+ }
4590
+ });
4582
4591
  if (this.token == 'logout') {
4583
4592
  console.error('No authentication token found');
4584
4593
  this.twilioService.device?.disconnectAll();
@@ -4588,6 +4597,7 @@ class DialboxComponent {
4588
4597
  incomingCallData = incomingCallData?.length > 0
4589
4598
  ? incomingCallData.filter((item) => item.participants?.length > 0)
4590
4599
  : [];
4600
+ console.log('incomingCallData 251', incomingCallData);
4591
4601
  // All conferenceIds received from socket this tick
4592
4602
  const socketConferenceIds = incomingCallData.map((c) => c.conferenceId);
4593
4603
  incomingCallData.forEach((callInfo) => {