@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
|
@@ -3296,6 +3296,17 @@ class CallProgressComponent {
|
|
|
3296
3296
|
const sid = callToAccept.parameters?.CallSid;
|
|
3297
3297
|
this.acceptedCallList = this.acceptedCallList.filter(c => c.callSid !== sid);
|
|
3298
3298
|
this.twilioService.acceptedCallList = this.twilioService.acceptedCallList.filter((c) => c.parameters?.CallSid !== sid);
|
|
3299
|
+
let payload = {
|
|
3300
|
+
participantId: [ourNumberInfo?.id],
|
|
3301
|
+
conferenceId: ourNumberInfo?.conferenceId,
|
|
3302
|
+
hold: false,
|
|
3303
|
+
mute: ourNumberInfo?.mute || false
|
|
3304
|
+
};
|
|
3305
|
+
this.extensionService.holdParticipant(payload).subscribe((res) => {
|
|
3306
|
+
if (res?.status != 200) {
|
|
3307
|
+
swal("Error", res?.message?.join?.("<br/>") || 'Internal Server Error', "error");
|
|
3308
|
+
}
|
|
3309
|
+
});
|
|
3299
3310
|
this.twilioService.isShowIncomingCall = false;
|
|
3300
3311
|
this.isConnecting = false;
|
|
3301
3312
|
this.isIncomingCallBtnDisable = false;
|
|
@@ -4473,7 +4484,7 @@ class DialboxComponent {
|
|
|
4473
4484
|
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
4474
4485
|
this.conferenceCallList.emit(incomingCallData);
|
|
4475
4486
|
this.token = localStorage.getItem('ext_token') || '';
|
|
4476
|
-
if (
|
|
4487
|
+
if (this.token == 'logout') {
|
|
4477
4488
|
console.error('No authentication token found');
|
|
4478
4489
|
this.twilioService.device?.disconnectAll();
|
|
4479
4490
|
return;
|
|
@@ -5501,8 +5512,10 @@ class DialboxComponent {
|
|
|
5501
5512
|
this.incomingCallsList = [];
|
|
5502
5513
|
// Clean up Twilio device when component is destroyed
|
|
5503
5514
|
if (this.twilioService['device']) {
|
|
5515
|
+
this.twilioService['device'].disconnectAll();
|
|
5504
5516
|
this.twilioService['device'].destroy();
|
|
5505
5517
|
}
|
|
5518
|
+
this.twilioService.setIncomingMuted(true);
|
|
5506
5519
|
// End any active call
|
|
5507
5520
|
if (this.isCallInProgress) {
|
|
5508
5521
|
this.endCall();
|