@vgroup/dialbox 0.3.8 → 0.3.10
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.
|
@@ -2501,9 +2501,9 @@ class CallProgressComponent {
|
|
|
2501
2501
|
// Put current call on hold
|
|
2502
2502
|
this.heldCall = this.call;
|
|
2503
2503
|
this.isCallOnHold = true;
|
|
2504
|
-
this.heldCall.mute(true);
|
|
2504
|
+
// this.heldCall.mute(true);
|
|
2505
2505
|
this.heldCall['parameters']['caller_name'] = { ...this.callData };
|
|
2506
|
-
this.call
|
|
2506
|
+
// this.call=null
|
|
2507
2507
|
// Close contacts panel and show ring animation
|
|
2508
2508
|
this.showContactsPanel = false;
|
|
2509
2509
|
this.showRingAnimation = true;
|
|
@@ -2517,13 +2517,11 @@ class CallProgressComponent {
|
|
|
2517
2517
|
displayNum: phoneNumber,
|
|
2518
2518
|
name: contactName || phoneNumber,
|
|
2519
2519
|
img: contact?.img || 'assets/images/user.jpg',
|
|
2520
|
-
participantId:
|
|
2520
|
+
participantId: '',
|
|
2521
2521
|
from: this.selectedCallerId?.number,
|
|
2522
2522
|
isIncomingCall: false,
|
|
2523
2523
|
};
|
|
2524
|
-
|
|
2525
|
-
this.currentCallList.push(this.callData);
|
|
2526
|
-
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2524
|
+
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2527
2525
|
this.cdr.detectChanges();
|
|
2528
2526
|
// Get the conference ID from the current call or use the stored one
|
|
2529
2527
|
const conferenceId = this.conferenceId;
|
|
@@ -2534,12 +2532,18 @@ class CallProgressComponent {
|
|
|
2534
2532
|
return;
|
|
2535
2533
|
}
|
|
2536
2534
|
// Add participant to the conference
|
|
2537
|
-
await this.addParticipantToCall({
|
|
2535
|
+
let data = await this.addParticipantToCall({
|
|
2538
2536
|
from: this.callData?.from,
|
|
2539
2537
|
route: "OUTGOING",
|
|
2540
2538
|
participantNumber: phoneNumber,
|
|
2541
2539
|
conferenceId: conferenceId
|
|
2542
2540
|
});
|
|
2541
|
+
this.callData = {
|
|
2542
|
+
...this.callData,
|
|
2543
|
+
participantId: data?.participantId,
|
|
2544
|
+
};
|
|
2545
|
+
console.log(this.callData, 'this.callData');
|
|
2546
|
+
this.currentCallList.push(this.callData);
|
|
2543
2547
|
console.log("Participant added to conference:", phoneNumber);
|
|
2544
2548
|
this.showRingAnimation = false;
|
|
2545
2549
|
}
|