@vgroup/dialbox 0.7.32 → 0.7.33
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 +2 -2
- package/esm2020/lib/dialbox.component.mjs +11 -1
- package/fesm2015/vgroup-dialbox.mjs +15 -5
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +11 -1
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
- package/vgroup-dialbox-0.7.23.tgz +0 -0
|
@@ -2130,7 +2130,7 @@ class CallProgressComponent {
|
|
|
2130
2130
|
console.log('newIncomingCallsList', this.newIncomingCallsList);
|
|
2131
2131
|
this.newIncomingCallsList.forEach((callInfo, i) => {
|
|
2132
2132
|
this.conferenceId = i == 0 ? this.newIncomingCallsList[i].conferenceId : this.conferenceId;
|
|
2133
|
-
let ourNumberInfo = this.newIncomingCallsList[i]?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call') || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && (!resData?.businessNumber || (resData?.businessNumber && callInfo?.participants?.length == 1)))) && !resData?.isLeft);
|
|
2133
|
+
let ourNumberInfo = this.newIncomingCallsList[i]?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && (!resData?.businessNumber || (resData?.businessNumber && callInfo?.participants?.length == 1)))) && !resData?.isLeft);
|
|
2134
2134
|
if (!this.pendingMuteUpdate) {
|
|
2135
2135
|
this.isMute = !ourNumberInfo?.isHold ? ourNumberInfo?.isMute : this.isMute;
|
|
2136
2136
|
}
|
|
@@ -4459,6 +4459,12 @@ class DialboxComponent {
|
|
|
4459
4459
|
this.incomeingCallSocketService.listen().subscribe(async (incomingCallData) => {
|
|
4460
4460
|
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
4461
4461
|
this.conferenceCallList.emit(incomingCallData);
|
|
4462
|
+
this.token = localStorage.getItem('ext_token') || '';
|
|
4463
|
+
if (!this.token) {
|
|
4464
|
+
console.error('No authentication token found');
|
|
4465
|
+
this.twilioService.device?.disconnectAll();
|
|
4466
|
+
return;
|
|
4467
|
+
}
|
|
4462
4468
|
// Filter out conferences with no participants
|
|
4463
4469
|
incomingCallData = incomingCallData?.length > 0
|
|
4464
4470
|
? incomingCallData.filter((item) => item.participants?.length > 0)
|
|
@@ -4555,6 +4561,10 @@ class DialboxComponent {
|
|
|
4555
4561
|
}, 2000);
|
|
4556
4562
|
}
|
|
4557
4563
|
}
|
|
4564
|
+
if (!this.incomingCallsList?.length) {
|
|
4565
|
+
this.isCallInProgress = false;
|
|
4566
|
+
this.twilioService.device?.disconnectAll();
|
|
4567
|
+
}
|
|
4558
4568
|
});
|
|
4559
4569
|
this.token = localStorage.getItem('ext_token') || '';
|
|
4560
4570
|
this.getContactList();
|