@vgroup/dialbox 0.2.70 → 0.2.72
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 +20 -7
- package/esm2020/lib/service/extension.service.mjs +3 -3
- package/fesm2015/vgroup-dialbox.mjs +17 -8
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +21 -8
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +2 -1
- package/lib/service/extension.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -611,13 +611,13 @@ class ExtensionService {
|
|
|
611
611
|
const httpOptions = { headers: headers };
|
|
612
612
|
return this.http.post(environment.apiUrl + '/utilities/ext/ur/hold/participant', payload, httpOptions);
|
|
613
613
|
}
|
|
614
|
-
getAllParticipants(
|
|
614
|
+
getAllParticipants(conferenceSid) {
|
|
615
615
|
const headers = new HttpHeaders({
|
|
616
616
|
'Content-Type': 'application/json',
|
|
617
617
|
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
|
|
618
618
|
});
|
|
619
619
|
const httpOptions = { headers: headers };
|
|
620
|
-
return this.http.get(environment.apiUrl + `/utilities/ext/ur/all/participent/${
|
|
620
|
+
return this.http.get(environment.apiUrl + `/utilities/ext/ur/all/participent/${conferenceSid}`, httpOptions);
|
|
621
621
|
}
|
|
622
622
|
updateHoldUnhold(payload) {
|
|
623
623
|
const params = {
|
|
@@ -2121,14 +2121,14 @@ class CallProgressComponent {
|
|
|
2121
2121
|
await this.pollCallStatus(callAuthId);
|
|
2122
2122
|
setTimeout(async () => {
|
|
2123
2123
|
try {
|
|
2124
|
-
|
|
2124
|
+
this.addRes = await this.addParticipantToCall({
|
|
2125
2125
|
from: callData?.from,
|
|
2126
2126
|
route: "OUTGOING",
|
|
2127
2127
|
participantNumber: callData?.phone,
|
|
2128
2128
|
conferenceId: this.conferenceId
|
|
2129
2129
|
});
|
|
2130
|
-
this.callData = { ...this.callData, participantId: addRes?.participantId };
|
|
2131
|
-
console.log('Initial participantId:', addRes?.participantId);
|
|
2130
|
+
this.callData = { ...this.callData, participantId: this.addRes?.participantId };
|
|
2131
|
+
console.log('Initial participantId:', this.addRes?.participantId);
|
|
2132
2132
|
}
|
|
2133
2133
|
catch (e) {
|
|
2134
2134
|
console.error('Error adding initial participant:', e);
|
|
@@ -2346,8 +2346,9 @@ class CallProgressComponent {
|
|
|
2346
2346
|
this.GetContactsList();
|
|
2347
2347
|
}
|
|
2348
2348
|
addRemoveParticipant() {
|
|
2349
|
+
const conferenceSId = this.addRes?.conferenceSid;
|
|
2349
2350
|
this.isAddRemoveParticipant = !this.isAddRemoveParticipant;
|
|
2350
|
-
this.getAllParticipants();
|
|
2351
|
+
this.getAllParticipants(conferenceSId);
|
|
2351
2352
|
}
|
|
2352
2353
|
async callContact(contact) {
|
|
2353
2354
|
console.log('Adding participant:', contact);
|
|
@@ -2375,6 +2376,18 @@ class CallProgressComponent {
|
|
|
2375
2376
|
// Close contacts panel and show ring animation
|
|
2376
2377
|
this.showContactsPanel = false;
|
|
2377
2378
|
this.showRingAnimation = true;
|
|
2379
|
+
// Update UI to reflect the new outbound leg being dialed
|
|
2380
|
+
const contactName = [contact?.firstName, contact?.middleName, contact?.lastName]
|
|
2381
|
+
.filter(Boolean)
|
|
2382
|
+
.join(' ');
|
|
2383
|
+
this.callData = {
|
|
2384
|
+
...this.callData,
|
|
2385
|
+
phone: phoneNumber,
|
|
2386
|
+
displayNum: phoneNumber,
|
|
2387
|
+
name: contactName || phoneNumber,
|
|
2388
|
+
img: contact?.img || 'assets/images/user.jpg'
|
|
2389
|
+
};
|
|
2390
|
+
this.cdr.detectChanges();
|
|
2378
2391
|
// Get the conference ID from the current call or use the stored one
|
|
2379
2392
|
const conferenceId = this.conferenceId;
|
|
2380
2393
|
if (!conferenceId) {
|
|
@@ -2406,8 +2419,8 @@ class CallProgressComponent {
|
|
|
2406
2419
|
this.handleError(error);
|
|
2407
2420
|
}
|
|
2408
2421
|
}
|
|
2409
|
-
getAllParticipants() {
|
|
2410
|
-
this.extensionService.getAllParticipants(
|
|
2422
|
+
getAllParticipants(conferenceSid) {
|
|
2423
|
+
this.extensionService.getAllParticipants(conferenceSid).subscribe((res) => {
|
|
2411
2424
|
console.log(res);
|
|
2412
2425
|
});
|
|
2413
2426
|
}
|