@vgroup/dialbox 0.3.80 → 0.3.82

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.
@@ -1755,7 +1755,7 @@ class CallProgressComponent {
1755
1755
  this.isClickExpand = false;
1756
1756
  this.isMinimised = false;
1757
1757
  console.log('Call Progress Component');
1758
- this.device = this.twilioService.device;
1758
+ this.call = this.twilioService.device;
1759
1759
  }
1760
1760
  ngOnInit() {
1761
1761
  console.log('Call Progress Component ngOnInit');
@@ -1907,7 +1907,7 @@ class CallProgressComponent {
1907
1907
  }
1908
1908
  getStatus(res) {
1909
1909
  if (res.direction == "incoming-call") {
1910
- if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-progres") {
1910
+ if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-progress") {
1911
1911
  return true;
1912
1912
  }
1913
1913
  else {
@@ -1915,7 +1915,7 @@ class CallProgressComponent {
1915
1915
  }
1916
1916
  }
1917
1917
  else if (res.direction == "outgoing-call") {
1918
- if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-progres") {
1918
+ if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-progress") {
1919
1919
  return true;
1920
1920
  }
1921
1921
  else {
@@ -1983,7 +1983,7 @@ class CallProgressComponent {
1983
1983
  conferenceId: this.conferenceId
1984
1984
  });
1985
1985
  this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true };
1986
- this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
1986
+ // this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
1987
1987
  console.log('test111111');
1988
1988
  // this.currentCall = {...this.callData, img: callData.img ||'assets/images/user.jpg'};
1989
1989
  // Initialize isAcceptCall based on current call state to ensure UI renders if already connected
@@ -2074,7 +2074,8 @@ class CallProgressComponent {
2074
2074
  },
2075
2075
  rtcConstraints: { audio: { deviceId: 'default' } },
2076
2076
  });
2077
- this.call['callInfo'] = JSON.parse(JSON.stringify(callData));
2077
+ console.log('test98998111111', this.call);
2078
+ // this.call['callInfo'] = JSON.parse(JSON.stringify(callData));
2078
2079
  this.setupEventListeners();
2079
2080
  }
2080
2081
  setupEventListeners() {
@@ -2334,10 +2335,10 @@ class CallProgressComponent {
2334
2335
  console.log('this.call', this.call);
2335
2336
  console.log('this.call', this.call.status());
2336
2337
  // Check if there's an active call
2337
- if (!this.call || this.call.status() !== 'open') {
2338
- console.error('No active call');
2339
- return;
2340
- }
2338
+ // if (!this.call || this.call.status() !== 'open') {
2339
+ // console.error('No active call');
2340
+ // return;
2341
+ // }
2341
2342
  // Get the phone number from the contact
2342
2343
  const phoneNumber = contact?.numbersList?.[0]?.number;
2343
2344
  const currentCall = this.currentCallList.find((c) => c?.phone === phoneNumber);
@@ -2714,7 +2715,7 @@ class CallProgressComponent {
2714
2715
  // handle incoming call accepted
2715
2716
  this.startTimer();
2716
2717
  this.disbaleEndCallBtn = false;
2717
- this.call = data.call;
2718
+ // this.call = data.call;
2718
2719
  this.isConcurrentIncoming = false;
2719
2720
  this.incomingCallDiv = false;
2720
2721
  const incomingDetail = this.extensionService.getCallSid();