@vgroup/dialbox 0.4.170 → 0.4.171
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.
|
@@ -2485,7 +2485,7 @@ class CallProgressComponent {
|
|
|
2485
2485
|
ipCountry: '',
|
|
2486
2486
|
callStatus: 'answered',
|
|
2487
2487
|
deviceId: this.deviceId,
|
|
2488
|
-
conferenceId:
|
|
2488
|
+
conferenceId: (data === null || data === void 0 ? void 0 : data.conferenceId) || 'no'
|
|
2489
2489
|
};
|
|
2490
2490
|
this.extensionService.setIncomingCallStatus(payload).subscribe((res) => __awaiter(this, void 0, void 0, function* () {
|
|
2491
2491
|
this.call = yield this.twilioService.connect({ conferenceId: res.conferenceId, conferenceName: res.conferenceName });
|
|
@@ -2501,13 +2501,6 @@ class CallProgressComponent {
|
|
|
2501
2501
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2502
2502
|
console.log('Adding participant:', contact);
|
|
2503
2503
|
console.log('this.call', this.call);
|
|
2504
|
-
// console.log('this.call', this.call.status())
|
|
2505
|
-
// Check if there's an active call
|
|
2506
|
-
// if (!this.call || this.call.status() !== 'open') {
|
|
2507
|
-
// console.error('No active call');
|
|
2508
|
-
// return;
|
|
2509
|
-
// }
|
|
2510
|
-
// Get the phone number from the contact
|
|
2511
2504
|
const phoneNumber = ((_b = (_a = contact === null || contact === void 0 ? void 0 : contact.numbersList) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.number) || (contact === null || contact === void 0 ? void 0 : contact.phone);
|
|
2512
2505
|
const currentCall = this.currentCallList.find((c) => (c === null || c === void 0 ? void 0 : c.phone) === phoneNumber);
|
|
2513
2506
|
if (!phoneNumber || currentCall) {
|