@vgroup/dialbox 0.2.66 → 0.2.67
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 +9 -19
- package/esm2020/lib/service/extension.service.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +9 -19
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +9 -19
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -609,7 +609,7 @@ class ExtensionService {
|
|
|
609
609
|
'Content-Type': 'application/json',
|
|
610
610
|
'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
|
|
611
611
|
});
|
|
612
|
-
const httpOptions = { headers };
|
|
612
|
+
const httpOptions = { headers: headers };
|
|
613
613
|
return this.http.post(environment.apiUrl + '/utilities/ext/ur/hold/participant', payload, httpOptions);
|
|
614
614
|
}
|
|
615
615
|
// getAllParticipants(id:any, payload: any) {
|
|
@@ -2132,20 +2132,12 @@ class CallProgressComponent {
|
|
|
2132
2132
|
yield this.connectToDevice(tokenData.token, callData);
|
|
2133
2133
|
yield this.pollCallStatus(callAuthId);
|
|
2134
2134
|
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
});
|
|
2142
|
-
// Save participantId for the active leg so we can hold/unhold later
|
|
2143
|
-
this.callData = Object.assign(Object.assign({}, this.callData), { participantId: addRes === null || addRes === void 0 ? void 0 : addRes.participantId });
|
|
2144
|
-
console.log('Initial participantId:', addRes === null || addRes === void 0 ? void 0 : addRes.participantId);
|
|
2145
|
-
}
|
|
2146
|
-
catch (e) {
|
|
2147
|
-
console.error('Error adding initial participant:', e);
|
|
2148
|
-
}
|
|
2135
|
+
yield this.addParticipantToCall({
|
|
2136
|
+
from: callData === null || callData === void 0 ? void 0 : callData.from,
|
|
2137
|
+
route: "OUTGOING",
|
|
2138
|
+
participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
|
|
2139
|
+
conferenceId: this.conferenceId
|
|
2140
|
+
});
|
|
2149
2141
|
}), 1000);
|
|
2150
2142
|
// Poll the status for 30-45 seconds
|
|
2151
2143
|
}
|
|
@@ -2417,15 +2409,13 @@ class CallProgressComponent {
|
|
|
2417
2409
|
return;
|
|
2418
2410
|
}
|
|
2419
2411
|
// Add participant to the conference
|
|
2420
|
-
|
|
2412
|
+
yield this.addParticipantToCall({
|
|
2421
2413
|
from: (_d = this.callData) === null || _d === void 0 ? void 0 : _d.from,
|
|
2422
2414
|
route: "OUTGOING",
|
|
2423
2415
|
participantNumber: phoneNumber,
|
|
2424
2416
|
conferenceId: conferenceId
|
|
2425
2417
|
});
|
|
2426
|
-
|
|
2427
|
-
this.callData = Object.assign(Object.assign({}, this.callData), { lastAddedParticipantId: addRes === null || addRes === void 0 ? void 0 : addRes.participantId });
|
|
2428
|
-
console.log("Participant added to conference:", phoneNumber, 'id:', addRes === null || addRes === void 0 ? void 0 : addRes.participantId);
|
|
2418
|
+
console.log("Participant added to conference:", phoneNumber);
|
|
2429
2419
|
this.showRingAnimation = false;
|
|
2430
2420
|
}
|
|
2431
2421
|
catch (error) {
|