@vgroup/dialbox 0.2.58 → 0.2.59
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 +6 -3
- package/esm2020/lib/service/extension.service.mjs +6 -1
- package/fesm2015/vgroup-dialbox.mjs +12 -2
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +10 -2
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +1 -0
- package/lib/service/extension.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -633,6 +633,11 @@ class ExtensionService {
|
|
|
633
633
|
const httpOptions = { headers: new HttpHeaders(params) };
|
|
634
634
|
return this.http.get(environment.apiUrl + `/utilities/ext/ur/call/status/participant/${participantId}`, httpOptions);
|
|
635
635
|
}
|
|
636
|
+
muteParticipant() {
|
|
637
|
+
const params = {};
|
|
638
|
+
const httpOptions = { headers: new HttpHeaders(params) };
|
|
639
|
+
return this.http.get(environment.apiUrl + '/utilities/ext/ur/mute/participant', httpOptions);
|
|
640
|
+
}
|
|
636
641
|
fetchBlockedCountries() {
|
|
637
642
|
return this.http.get(environment.apiUrl + '/global/master/ur/blacklisted/countrylist').pipe(map(response => {
|
|
638
643
|
if (response.response === 'Success' && Array.isArray(response.countries)) {
|
|
@@ -2115,15 +2120,15 @@ class CallProgressComponent {
|
|
|
2115
2120
|
this.getUserInformation(callAuthId);
|
|
2116
2121
|
this.recordCall = recordCall; // Store the recordCall value
|
|
2117
2122
|
const tokenData = yield this.getOutgoingCallToken(callAuthId);
|
|
2123
|
+
yield this.connectToDevice(tokenData.token, callData);
|
|
2124
|
+
this.pollCallStatus(callAuthId);
|
|
2118
2125
|
yield this.addParticipantToCall({
|
|
2119
2126
|
from: callData === null || callData === void 0 ? void 0 : callData.from,
|
|
2120
2127
|
route: "OUTGOING",
|
|
2121
2128
|
participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
|
|
2122
2129
|
conferenceId: (_a = response === null || response === void 0 ? void 0 : response.callauth) === null || _a === void 0 ? void 0 : _a.id
|
|
2123
2130
|
});
|
|
2124
|
-
yield this.connectToDevice(tokenData.token, callData);
|
|
2125
2131
|
// Poll the status for 30-45 seconds
|
|
2126
|
-
this.pollCallStatus(callAuthId);
|
|
2127
2132
|
}
|
|
2128
2133
|
else if (response.status == 201) {
|
|
2129
2134
|
swal("Error", response.message.join("<br/>"), "error");
|
|
@@ -2149,6 +2154,11 @@ class CallProgressComponent {
|
|
|
2149
2154
|
return yield this.extensionService.addParticipant(payload).toPromise();
|
|
2150
2155
|
});
|
|
2151
2156
|
}
|
|
2157
|
+
getCallStatusOfParticipants(participantId) {
|
|
2158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2159
|
+
return yield this.extensionService.getCallStatusOfParticipants(participantId).toPromise();
|
|
2160
|
+
});
|
|
2161
|
+
}
|
|
2152
2162
|
getCallAuthId(response) {
|
|
2153
2163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2154
2164
|
return {
|