@vgroup/dialbox 0.2.32 → 0.2.34
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 -5
- package/esm2020/lib/environments/environments.mjs +5 -2
- package/esm2020/lib/service/extension.service.mjs +2 -1
- package/fesm2015/vgroup-dialbox.mjs +10 -5
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +10 -5
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/environments/environments.d.ts +3 -0
- package/package.json +1 -1
|
@@ -90,7 +90,10 @@ const environment = {
|
|
|
90
90
|
measurementId: "G-NGXTSV9SH3",
|
|
91
91
|
vapidKey: "BD6EgcQgbZTjOQfleG3YlEc0_SajB03prqTdDy-qGJkxTxezbq-A_qtuXE1l3yT47o8hnTAbTKBcH15D2AJB2To"
|
|
92
92
|
},
|
|
93
|
-
perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s'
|
|
93
|
+
perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
|
|
94
|
+
keycloakURL: 'https://test-keycloak.vgroupinc.com/',
|
|
95
|
+
keycloakRealm: 'vgroup-dev',
|
|
96
|
+
keycloakClientId: 'c2c-softphone-app'
|
|
94
97
|
};
|
|
95
98
|
|
|
96
99
|
class IpAddressService {
|
|
@@ -623,6 +626,7 @@ class ExtensionService {
|
|
|
623
626
|
// return this.http.post<[]>(environment.apiUrl + '/utilities/ext/ur/generate/conference/token', params, httpOptions);
|
|
624
627
|
// }
|
|
625
628
|
getConferenceCallToken(payload) {
|
|
629
|
+
console.log(payload, 'payload');
|
|
626
630
|
const params = {
|
|
627
631
|
'Content-Type': 'application/json',
|
|
628
632
|
'Auth-Key': "Bearer " + localStorage.getItem('ext_token'),
|
|
@@ -2145,7 +2149,7 @@ class CallProgressComponent {
|
|
|
2145
2149
|
const { id: callAuthId, recordCall } = await this.getCallAuthId(response);
|
|
2146
2150
|
this.getUserInformation(callAuthId);
|
|
2147
2151
|
this.recordCall = recordCall; // Store the recordCall value
|
|
2148
|
-
const tokenData = await this.getConferenceCallToken(
|
|
2152
|
+
const tokenData = await this.getConferenceCallToken(response.conferenceId);
|
|
2149
2153
|
await this.connectToDevice(tokenData.token, callData);
|
|
2150
2154
|
// Poll the status for 30-45 seconds
|
|
2151
2155
|
this.pollCallStatus(callAuthId);
|
|
@@ -2172,8 +2176,9 @@ class CallProgressComponent {
|
|
|
2172
2176
|
recordCall: response.callauth.recordCall
|
|
2173
2177
|
};
|
|
2174
2178
|
}
|
|
2175
|
-
async getConferenceCallToken(
|
|
2176
|
-
|
|
2179
|
+
async getConferenceCallToken(conferenceId) {
|
|
2180
|
+
console.log(conferenceId, 'conferenceId');
|
|
2181
|
+
return await this.extensionService.getConferenceCallToken({ conferenceId: conferenceId }).toPromise();
|
|
2177
2182
|
}
|
|
2178
2183
|
async connectToDevice(token, callData) {
|
|
2179
2184
|
const options = {
|
|
@@ -2394,7 +2399,7 @@ class CallProgressComponent {
|
|
|
2394
2399
|
const { id: callAuthId, recordCall } = await this.getCallAuthId(response);
|
|
2395
2400
|
this.getUserInformation(callAuthId);
|
|
2396
2401
|
this.recordCall = recordCall;
|
|
2397
|
-
const tokenData = await this.getConferenceCallToken(
|
|
2402
|
+
const tokenData = await this.getConferenceCallToken(response.conferenceId);
|
|
2398
2403
|
// Connect to new call
|
|
2399
2404
|
const options = {
|
|
2400
2405
|
codecPreferences: ['opus', 'pcmu'],
|