@vgroup/dialbox 0.2.33 → 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/fesm2015/vgroup-dialbox.mjs +9 -5
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +9 -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 {
|
|
@@ -2146,7 +2149,7 @@ class CallProgressComponent {
|
|
|
2146
2149
|
const { id: callAuthId, recordCall } = await this.getCallAuthId(response);
|
|
2147
2150
|
this.getUserInformation(callAuthId);
|
|
2148
2151
|
this.recordCall = recordCall; // Store the recordCall value
|
|
2149
|
-
const tokenData = await this.getConferenceCallToken(
|
|
2152
|
+
const tokenData = await this.getConferenceCallToken(response.conferenceId);
|
|
2150
2153
|
await this.connectToDevice(tokenData.token, callData);
|
|
2151
2154
|
// Poll the status for 30-45 seconds
|
|
2152
2155
|
this.pollCallStatus(callAuthId);
|
|
@@ -2173,8 +2176,9 @@ class CallProgressComponent {
|
|
|
2173
2176
|
recordCall: response.callauth.recordCall
|
|
2174
2177
|
};
|
|
2175
2178
|
}
|
|
2176
|
-
async getConferenceCallToken(
|
|
2177
|
-
|
|
2179
|
+
async getConferenceCallToken(conferenceId) {
|
|
2180
|
+
console.log(conferenceId, 'conferenceId');
|
|
2181
|
+
return await this.extensionService.getConferenceCallToken({ conferenceId: conferenceId }).toPromise();
|
|
2178
2182
|
}
|
|
2179
2183
|
async connectToDevice(token, callData) {
|
|
2180
2184
|
const options = {
|
|
@@ -2395,7 +2399,7 @@ class CallProgressComponent {
|
|
|
2395
2399
|
const { id: callAuthId, recordCall } = await this.getCallAuthId(response);
|
|
2396
2400
|
this.getUserInformation(callAuthId);
|
|
2397
2401
|
this.recordCall = recordCall;
|
|
2398
|
-
const tokenData = await this.getConferenceCallToken(
|
|
2402
|
+
const tokenData = await this.getConferenceCallToken(response.conferenceId);
|
|
2399
2403
|
// Connect to new call
|
|
2400
2404
|
const options = {
|
|
2401
2405
|
codecPreferences: ['opus', 'pcmu'],
|