@vgroup/dialbox 0.8.23 → 0.8.24
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 +29 -1
- package/fesm2015/vgroup-dialbox.mjs +32 -3
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +28 -0
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +1 -0
- package/package.json +1 -1
- package/vgroup-dialbox-0.8.20.tgz +0 -0
- package/vgroup-dialbox-0.8.21.tgz +0 -0
|
@@ -3158,6 +3158,8 @@ class CallProgressComponent {
|
|
|
3158
3158
|
}).catch((err) => err?.error);
|
|
3159
3159
|
if (this.isAddParticipantFailed(this.addRes)) {
|
|
3160
3160
|
this.showAddParticipantError(this.addRes);
|
|
3161
|
+
this.disconnectFailedCall(response?.callauth?.id, isNewConference);
|
|
3162
|
+
return;
|
|
3161
3163
|
}
|
|
3162
3164
|
this.isNewCallLoader = false;
|
|
3163
3165
|
if (isNewConference) {
|
|
@@ -3413,6 +3415,32 @@ class CallProgressComponent {
|
|
|
3413
3415
|
const message = Array.isArray(res?.message) ? res.message.join('<br/>') : res?.message;
|
|
3414
3416
|
swal('Error', message || 'Failed to add participant. Please try again.', 'error');
|
|
3415
3417
|
}
|
|
3418
|
+
// addParticipant failed for a newly started call: close its conference (drops our client leg too).
|
|
3419
|
+
// Only call → back to the dialpad; otherwise the socket feed auto-unholds the previously held conference.
|
|
3420
|
+
disconnectFailedCall(conferenceId, isNewConference) {
|
|
3421
|
+
this.specialCallConferenceIds.delete(conferenceId);
|
|
3422
|
+
if (conferenceId) {
|
|
3423
|
+
this.extensionService.getRemoveParticipants('all', conferenceId).subscribe({
|
|
3424
|
+
error: (err) => console.error('Error closing failed call:', err)
|
|
3425
|
+
});
|
|
3426
|
+
}
|
|
3427
|
+
this.showRingAnimation = false;
|
|
3428
|
+
this.isNewCallLoader = false;
|
|
3429
|
+
this.isNewAddedCall = false;
|
|
3430
|
+
this.showNewCallLoader = false;
|
|
3431
|
+
this.extensionService.isLoadershow.next(false);
|
|
3432
|
+
this.isLoadershown.emit(false);
|
|
3433
|
+
const hasOtherCalls = this.newIncomingCallsList?.some((c) => c?.conferenceId != conferenceId);
|
|
3434
|
+
if (isNewConference && hasOtherCalls) {
|
|
3435
|
+
this.pendingAutoUnhold = true;
|
|
3436
|
+
this.unholdPendingConference();
|
|
3437
|
+
}
|
|
3438
|
+
else {
|
|
3439
|
+
this.call?.disconnect?.();
|
|
3440
|
+
this.endCallEvent.emit();
|
|
3441
|
+
}
|
|
3442
|
+
this.cdr.detectChanges();
|
|
3443
|
+
}
|
|
3416
3444
|
async initiateCall(payload) {
|
|
3417
3445
|
return await this.extensionService.initiateCall(payload).toPromise();
|
|
3418
3446
|
}
|