@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
|
@@ -632,6 +632,11 @@ class ExtensionService {
|
|
|
632
632
|
const httpOptions = { headers: new HttpHeaders(params) };
|
|
633
633
|
return this.http.get(environment.apiUrl + `/utilities/ext/ur/call/status/participant/${participantId}`, httpOptions);
|
|
634
634
|
}
|
|
635
|
+
muteParticipant() {
|
|
636
|
+
const params = {};
|
|
637
|
+
const httpOptions = { headers: new HttpHeaders(params) };
|
|
638
|
+
return this.http.get(environment.apiUrl + '/utilities/ext/ur/mute/participant', httpOptions);
|
|
639
|
+
}
|
|
635
640
|
fetchBlockedCountries() {
|
|
636
641
|
return this.http.get(environment.apiUrl + '/global/master/ur/blacklisted/countrylist').pipe(map(response => {
|
|
637
642
|
if (response.response === 'Success' && Array.isArray(response.countries)) {
|
|
@@ -2110,15 +2115,17 @@ class CallProgressComponent {
|
|
|
2110
2115
|
this.getUserInformation(callAuthId);
|
|
2111
2116
|
this.recordCall = recordCall; // Store the recordCall value
|
|
2112
2117
|
const tokenData = await this.getOutgoingCallToken(callAuthId);
|
|
2113
|
-
await this.addParticipantToCall({
|
|
2114
|
-
from: callData?.from,
|
|
2115
|
-
route: "OUTGOING",
|
|
2116
|
-
participantNumber: callData?.phone,
|
|
2117
|
-
conferenceId: response?.callauth?.id
|
|
2118
|
-
});
|
|
2119
2118
|
await this.connectToDevice(tokenData.token, callData);
|
|
2119
|
+
await this.pollCallStatus(callAuthId);
|
|
2120
|
+
setTimeout(async () => {
|
|
2121
|
+
await this.addParticipantToCall({
|
|
2122
|
+
from: callData?.from,
|
|
2123
|
+
route: "OUTGOING",
|
|
2124
|
+
participantNumber: callData?.phone,
|
|
2125
|
+
conferenceId: response?.callauth?.id
|
|
2126
|
+
});
|
|
2127
|
+
}, 1000);
|
|
2120
2128
|
// Poll the status for 30-45 seconds
|
|
2121
|
-
this.pollCallStatus(callAuthId);
|
|
2122
2129
|
}
|
|
2123
2130
|
else if (response.status == 201) {
|
|
2124
2131
|
swal("Error", response.message.join("<br/>"), "error");
|
|
@@ -2139,6 +2146,9 @@ class CallProgressComponent {
|
|
|
2139
2146
|
async addParticipantToCall(payload) {
|
|
2140
2147
|
return await this.extensionService.addParticipant(payload).toPromise();
|
|
2141
2148
|
}
|
|
2149
|
+
async getCallStatusOfParticipants(participantId) {
|
|
2150
|
+
return await this.extensionService.getCallStatusOfParticipants(participantId).toPromise();
|
|
2151
|
+
}
|
|
2142
2152
|
async getCallAuthId(response) {
|
|
2143
2153
|
return {
|
|
2144
2154
|
id: response.callauth.id,
|