@vgroup/dialbox 0.7.44 → 0.7.45
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 +12 -1
- package/esm2020/lib/dialbox.component.mjs +4 -2
- package/fesm2015/vgroup-dialbox.mjs +15 -1
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +14 -1
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3299,6 +3299,18 @@ class CallProgressComponent {
|
|
|
3299
3299
|
const sid = (_g = callToAccept.parameters) === null || _g === void 0 ? void 0 : _g.CallSid;
|
|
3300
3300
|
this.acceptedCallList = this.acceptedCallList.filter(c => c.callSid !== sid);
|
|
3301
3301
|
this.twilioService.acceptedCallList = this.twilioService.acceptedCallList.filter((c) => { var _a; return ((_a = c.parameters) === null || _a === void 0 ? void 0 : _a.CallSid) !== sid; });
|
|
3302
|
+
let payload = {
|
|
3303
|
+
participantId: [ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.id],
|
|
3304
|
+
conferenceId: ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.conferenceId,
|
|
3305
|
+
hold: false,
|
|
3306
|
+
mute: (ourNumberInfo === null || ourNumberInfo === void 0 ? void 0 : ourNumberInfo.mute) || false
|
|
3307
|
+
};
|
|
3308
|
+
this.extensionService.holdParticipant(payload).subscribe((res) => {
|
|
3309
|
+
var _a, _b;
|
|
3310
|
+
if ((res === null || res === void 0 ? void 0 : res.status) != 200) {
|
|
3311
|
+
swal("Error", ((_b = (_a = res === null || res === void 0 ? void 0 : res.message) === null || _a === void 0 ? void 0 : _a.join) === null || _b === void 0 ? void 0 : _b.call(_a, "<br/>")) || 'Internal Server Error', "error");
|
|
3312
|
+
}
|
|
3313
|
+
});
|
|
3302
3314
|
this.twilioService.isShowIncomingCall = false;
|
|
3303
3315
|
this.isConnecting = false;
|
|
3304
3316
|
this.isIncomingCallBtnDisable = false;
|
|
@@ -4512,7 +4524,7 @@ class DialboxComponent {
|
|
|
4512
4524
|
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
4513
4525
|
this.conferenceCallList.emit(incomingCallData);
|
|
4514
4526
|
this.token = localStorage.getItem('ext_token') || '';
|
|
4515
|
-
if (
|
|
4527
|
+
if (this.token == 'logout') {
|
|
4516
4528
|
console.error('No authentication token found');
|
|
4517
4529
|
(_a = this.twilioService.device) === null || _a === void 0 ? void 0 : _a.disconnectAll();
|
|
4518
4530
|
return;
|
|
@@ -5553,8 +5565,10 @@ class DialboxComponent {
|
|
|
5553
5565
|
this.incomingCallsList = [];
|
|
5554
5566
|
// Clean up Twilio device when component is destroyed
|
|
5555
5567
|
if (this.twilioService['device']) {
|
|
5568
|
+
this.twilioService['device'].disconnectAll();
|
|
5556
5569
|
this.twilioService['device'].destroy();
|
|
5557
5570
|
}
|
|
5571
|
+
this.twilioService.setIncomingMuted(true);
|
|
5558
5572
|
// End any active call
|
|
5559
5573
|
if (this.isCallInProgress) {
|
|
5560
5574
|
this.endCall();
|