@vgroup/dialbox 0.3.9 → 0.3.11
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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +13 -7
- package/esm2020/lib/dialbox.component.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +14 -10
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +13 -7
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2233,6 +2233,7 @@ class CallProgressComponent {
|
|
|
2233
2233
|
});
|
|
2234
2234
|
this.callData = Object.assign(Object.assign({}, this.callData), { participantId: (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId });
|
|
2235
2235
|
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2236
|
+
console.log('test111111');
|
|
2236
2237
|
this.currentCallList.push(callData);
|
|
2237
2238
|
console.log('Initial participantId:', (_c = this.addRes) === null || _c === void 0 ? void 0 : _c.participantId);
|
|
2238
2239
|
}
|
|
@@ -2510,7 +2511,7 @@ class CallProgressComponent {
|
|
|
2510
2511
|
this.allParticipentList = this.getAllParticipants(conferenceSId);
|
|
2511
2512
|
}
|
|
2512
2513
|
callContact(contact) {
|
|
2513
|
-
var _a, _b, _c, _d, _e
|
|
2514
|
+
var _a, _b, _c, _d, _e;
|
|
2514
2515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2515
2516
|
console.log('Adding participant:', contact);
|
|
2516
2517
|
console.log('this.call', this.call);
|
|
@@ -2535,7 +2536,7 @@ class CallProgressComponent {
|
|
|
2535
2536
|
// Put current call on hold
|
|
2536
2537
|
this.heldCall = this.call;
|
|
2537
2538
|
this.isCallOnHold = true;
|
|
2538
|
-
this.heldCall.mute(true);
|
|
2539
|
+
// this.heldCall.mute(true);
|
|
2539
2540
|
this.heldCall['parameters']['caller_name'] = Object.assign({}, this.callData);
|
|
2540
2541
|
// this.call=null
|
|
2541
2542
|
// Close contacts panel and show ring animation
|
|
@@ -2551,13 +2552,11 @@ class CallProgressComponent {
|
|
|
2551
2552
|
displayNum: phoneNumber,
|
|
2552
2553
|
name: contactName || phoneNumber,
|
|
2553
2554
|
img: (contact === null || contact === void 0 ? void 0 : contact.img) || 'assets/images/user.jpg',
|
|
2554
|
-
participantId:
|
|
2555
|
-
from: (
|
|
2555
|
+
participantId: '',
|
|
2556
|
+
from: (_d = this.selectedCallerId) === null || _d === void 0 ? void 0 : _d.number,
|
|
2556
2557
|
isIncomingCall: false,
|
|
2557
2558
|
};
|
|
2558
|
-
|
|
2559
|
-
this.currentCallList.push(this.callData);
|
|
2560
|
-
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2559
|
+
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2561
2560
|
this.cdr.detectChanges();
|
|
2562
2561
|
// Get the conference ID from the current call or use the stored one
|
|
2563
2562
|
const conferenceId = this.conferenceId;
|
|
@@ -2568,12 +2567,16 @@ class CallProgressComponent {
|
|
|
2568
2567
|
return;
|
|
2569
2568
|
}
|
|
2570
2569
|
// Add participant to the conference
|
|
2571
|
-
yield this.addParticipantToCall({
|
|
2572
|
-
from: (
|
|
2570
|
+
let data = yield this.addParticipantToCall({
|
|
2571
|
+
from: (_e = this.callData) === null || _e === void 0 ? void 0 : _e.from,
|
|
2573
2572
|
route: "OUTGOING",
|
|
2574
2573
|
participantNumber: phoneNumber,
|
|
2575
2574
|
conferenceId: conferenceId
|
|
2576
2575
|
});
|
|
2576
|
+
this.callData = Object.assign(Object.assign({}, this.callData), { participantId: data === null || data === void 0 ? void 0 : data.participantId });
|
|
2577
|
+
console.log(this.callData, 'this.callData');
|
|
2578
|
+
console.log('test111111');
|
|
2579
|
+
this.currentCallList.push(this.callData);
|
|
2577
2580
|
console.log("Participant added to conference:", phoneNumber);
|
|
2578
2581
|
this.showRingAnimation = false;
|
|
2579
2582
|
}
|
|
@@ -3172,11 +3175,12 @@ class DialboxComponent {
|
|
|
3172
3175
|
this.incomeingCallSocketService.connect();
|
|
3173
3176
|
try {
|
|
3174
3177
|
this.incomeingCallSocketService.listen().subscribe((incomingCallData) => __awaiter(this, void 0, void 0, function* () {
|
|
3178
|
+
var _a;
|
|
3175
3179
|
// const data = JSON.parse(incomingCallData.data);
|
|
3176
3180
|
console.log("WS Event Received:", incomingCallData);
|
|
3177
3181
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3178
3182
|
this.twilioService.conferenceName = incomingCallData.conferenceName;
|
|
3179
|
-
let participants = incomingCallData.participants.length > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
|
|
3183
|
+
let participants = ((_a = incomingCallData === null || incomingCallData === void 0 ? void 0 : incomingCallData.participants) === null || _a === void 0 ? void 0 : _a.length) > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
|
|
3180
3184
|
if (participants.length > 0) {
|
|
3181
3185
|
// this.showIncomingCallPopup(incoming, data/
|
|
3182
3186
|
this.isCallInProgress = true;
|