@vgroup/dialbox 0.7.39 → 0.7.41
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 +7 -5
- package/esm2020/lib/dialbox.component.mjs +16 -15
- package/fesm2015/vgroup-dialbox.mjs +21 -18
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +21 -17
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/dialbox.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -2524,7 +2524,8 @@ class CallProgressComponent {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
|
-
const rejoinParticipentInfo = callInfo?.participants.find((resData) => (this.deviceNumberList.includes(resData?.from)
|
|
2527
|
+
const rejoinParticipentInfo = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from)
|
|
2528
|
+
&& resData?.client && resData?.direction == 'outgoing-call') || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber && resData?.host) && resData?.isLeft));
|
|
2528
2529
|
this.showRingAnimation = true;
|
|
2529
2530
|
// 1️⃣ Get new token for same conference
|
|
2530
2531
|
const tokenData = await this.getOutgoingCallToken(callInfo?.conferenceId);
|
|
@@ -2557,7 +2558,8 @@ class CallProgressComponent {
|
|
|
2557
2558
|
proxy: '',
|
|
2558
2559
|
countrycode: '',
|
|
2559
2560
|
deviceId: this.deviceId,
|
|
2560
|
-
clientSid: this.call?.parameters['CallSid']
|
|
2561
|
+
clientSid: this.call?.parameters['CallSid'],
|
|
2562
|
+
recordId: rejoinParticipentInfo?.id
|
|
2561
2563
|
});
|
|
2562
2564
|
this.conferenceCallIDForParticipantList = rejoinParticipentInfo?.conferenceId;
|
|
2563
2565
|
this.setupEventListeners();
|
|
@@ -3049,7 +3051,7 @@ class CallProgressComponent {
|
|
|
3049
3051
|
else {
|
|
3050
3052
|
if (conf?.conferenceId) {
|
|
3051
3053
|
let participentInfo = conference?.participants?.find((participant) => ((this.deviceNumberList.includes(participant?.from)
|
|
3052
|
-
&& participant?.client) || (this.deviceNumberList.includes(participant?.to) && participant?.direction == 'incoming-call' && !participant?.businessNumber) && !participant?.businessNumber) && !participant?.isLeft);
|
|
3054
|
+
&& participant?.client && participant?.direction == 'outgoing-call') || (this.deviceNumberList.includes(participant?.to) && participant?.direction == 'incoming-call' && !participant?.businessNumber) && !participant?.businessNumber) && !participant?.isLeft);
|
|
3053
3055
|
if (participentInfo?.id) {
|
|
3054
3056
|
if (this.isInMultipleConferences()) {
|
|
3055
3057
|
this.leaveConfParticipant = participentInfo;
|
|
@@ -3995,7 +3997,7 @@ class CallProgressComponent {
|
|
|
3995
3997
|
if (this.selectedConf?.conferenceId) {
|
|
3996
3998
|
let conference = this.newIncomingCallsList?.find((res) => res?.conferenceId == this.selectedConf?.conferenceId);
|
|
3997
3999
|
let participentInfo = conference?.participants?.find((participant) => ((this.deviceNumberList.includes(participant?.from)
|
|
3998
|
-
&& participant?.client) || (this.deviceNumberList.includes(participant?.to) && participant?.direction == 'incoming-call' && !participant?.businessNumber) && participant?.client) && !participant?.isLeft);
|
|
4000
|
+
&& participant?.client && participant?.direction == 'outgoing-call') || (this.deviceNumberList.includes(participant?.to) && participant?.direction == 'incoming-call' && !participant?.businessNumber && participant?.host) && participant?.client) && !participant?.isLeft);
|
|
3999
4001
|
if (participentInfo?.id) {
|
|
4000
4002
|
if (this.isInMultipleConferences()) {
|
|
4001
4003
|
// Show popup instead of directly leaving
|
|
@@ -4346,21 +4348,23 @@ class DialboxComponent {
|
|
|
4346
4348
|
// the conference participants using a keepalive request so it survives the
|
|
4347
4349
|
// page being torn down (a normal HttpClient call would be cancelled).
|
|
4348
4350
|
if (this.isCallInProgress || this.incomingCallsList?.length) {
|
|
4349
|
-
this.removeParticipantsOnUnload();
|
|
4350
|
-
}
|
|
4351
|
-
}
|
|
4352
|
-
removeParticipantsOnUnload() {
|
|
4353
|
-
const conferenceId = this.incomingCallsList?.[0]?.conferenceId;
|
|
4354
|
-
if (!conferenceId) {
|
|
4355
|
-
return;
|
|
4356
|
-
}
|
|
4357
|
-
try {
|
|
4358
|
-
fetch(`${environment.apiUrl}/utilities/ext/ur/remove/participant/all/${conferenceId}`, { method: 'GET', keepalive: true });
|
|
4359
|
-
}
|
|
4360
|
-
catch {
|
|
4361
|
-
// Best-effort cleanup during unload; nothing else we can do here.
|
|
4351
|
+
// this.removeParticipantsOnUnload();
|
|
4362
4352
|
}
|
|
4363
4353
|
}
|
|
4354
|
+
// private removeParticipantsOnUnload() {
|
|
4355
|
+
// const conferenceId = this.incomingCallsList?.[0]?.conferenceId;
|
|
4356
|
+
// if (!conferenceId) {
|
|
4357
|
+
// return;
|
|
4358
|
+
// }
|
|
4359
|
+
// try {
|
|
4360
|
+
// fetch(
|
|
4361
|
+
// `${environment.apiUrl}/utilities/ext/ur/remove/participant/all/${conferenceId}`,
|
|
4362
|
+
// { method: 'GET', keepalive: true }
|
|
4363
|
+
// );
|
|
4364
|
+
// } catch {
|
|
4365
|
+
// // Best-effort cleanup during unload; nothing else we can do here.
|
|
4366
|
+
// }
|
|
4367
|
+
// }
|
|
4364
4368
|
constructor(twilioService, extService, ipService, extensionService, cdk, router, incomeingCallSocketService) {
|
|
4365
4369
|
this.twilioService = twilioService;
|
|
4366
4370
|
this.extService = extService;
|