@vgroup/dialbox 0.2.58 → 0.2.60
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 +13 -8
- package/esm2020/lib/service/extension.service.mjs +6 -1
- package/fesm2015/vgroup-dialbox.mjs +20 -8
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +17 -7
- 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)) {
|
|
@@ -2097,7 +2102,6 @@ class CallProgressComponent {
|
|
|
2097
2102
|
});
|
|
2098
2103
|
}
|
|
2099
2104
|
startCall(callData) {
|
|
2100
|
-
var _a;
|
|
2101
2105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2102
2106
|
console.log(callData, 'callData');
|
|
2103
2107
|
try {
|
|
@@ -2115,15 +2119,18 @@ class CallProgressComponent {
|
|
|
2115
2119
|
this.getUserInformation(callAuthId);
|
|
2116
2120
|
this.recordCall = recordCall; // Store the recordCall value
|
|
2117
2121
|
const tokenData = yield this.getOutgoingCallToken(callAuthId);
|
|
2118
|
-
yield this.addParticipantToCall({
|
|
2119
|
-
from: callData === null || callData === void 0 ? void 0 : callData.from,
|
|
2120
|
-
route: "OUTGOING",
|
|
2121
|
-
participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
|
|
2122
|
-
conferenceId: (_a = response === null || response === void 0 ? void 0 : response.callauth) === null || _a === void 0 ? void 0 : _a.id
|
|
2123
|
-
});
|
|
2124
2122
|
yield this.connectToDevice(tokenData.token, callData);
|
|
2123
|
+
yield this.pollCallStatus(callAuthId);
|
|
2124
|
+
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
2125
|
+
var _a;
|
|
2126
|
+
yield this.addParticipantToCall({
|
|
2127
|
+
from: callData === null || callData === void 0 ? void 0 : callData.from,
|
|
2128
|
+
route: "OUTGOING",
|
|
2129
|
+
participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
|
|
2130
|
+
conferenceId: (_a = response === null || response === void 0 ? void 0 : response.callauth) === null || _a === void 0 ? void 0 : _a.id
|
|
2131
|
+
});
|
|
2132
|
+
}), 1000);
|
|
2125
2133
|
// Poll the status for 30-45 seconds
|
|
2126
|
-
this.pollCallStatus(callAuthId);
|
|
2127
2134
|
}
|
|
2128
2135
|
else if (response.status == 201) {
|
|
2129
2136
|
swal("Error", response.message.join("<br/>"), "error");
|
|
@@ -2149,6 +2156,11 @@ class CallProgressComponent {
|
|
|
2149
2156
|
return yield this.extensionService.addParticipant(payload).toPromise();
|
|
2150
2157
|
});
|
|
2151
2158
|
}
|
|
2159
|
+
getCallStatusOfParticipants(participantId) {
|
|
2160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2161
|
+
return yield this.extensionService.getCallStatusOfParticipants(participantId).toPromise();
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2152
2164
|
getCallAuthId(response) {
|
|
2153
2165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2154
2166
|
return {
|