@vgroup/dialbox 0.3.98 → 0.4.0
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 +5 -3
- package/esm2020/lib/service/twilio.service.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +5 -3
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +5 -3
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1643,7 +1643,7 @@ class TwilioService {
|
|
|
1643
1643
|
const httpOptions = {
|
|
1644
1644
|
headers: new HttpHeaders({ 'Content-Type': 'application/json', 'Auth-Key': "Bearer " + localStorage.getItem('ext_token') }),
|
|
1645
1645
|
};
|
|
1646
|
-
return this.http.get(`${environment.apiUrl}/utilities/ext/add/incoming/participant/${participantId}/${conferenceId}
|
|
1646
|
+
return this.http.get(`${environment.apiUrl}/utilities/ext/add/incoming/participant/${participantId}/${conferenceId}`, httpOptions);
|
|
1647
1647
|
}
|
|
1648
1648
|
connect(data) {
|
|
1649
1649
|
return this.device.connect({
|
|
@@ -2326,7 +2326,6 @@ class CallProgressComponent {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
async add(data) {
|
|
2328
2328
|
// if(data?.status != 'ringing'){
|
|
2329
|
-
this.isCurrentIncomingCallList.push(data?.id);
|
|
2330
2329
|
this.conferenceId = this.twilioService.conferenceCallInfo.conferenceId;
|
|
2331
2330
|
if (this.currentCallList.length > 1 && this.currentCall?.isAcceptCall) {
|
|
2332
2331
|
const index = this.currentCallList.findIndex((item) => item.participantId == this.currentCall?.participantId);
|
|
@@ -2343,15 +2342,18 @@ class CallProgressComponent {
|
|
|
2343
2342
|
}
|
|
2344
2343
|
let incomingCallData = this.currentCallList.filter((item) => item.isIncomingCall && item.isAcceptCall);
|
|
2345
2344
|
if (incomingCallData.length > 0) {
|
|
2346
|
-
this.
|
|
2345
|
+
this.call = await this.twilioService.connect('');
|
|
2346
|
+
await this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data) => {
|
|
2347
2347
|
console.log(data, 'bhhhhhhhhhhhhhhhhhhh');
|
|
2348
2348
|
});
|
|
2349
|
+
this.isCurrentIncomingCallList.push(data?.id);
|
|
2349
2350
|
}
|
|
2350
2351
|
else {
|
|
2351
2352
|
this.call = await this.twilioService.connect('');
|
|
2352
2353
|
console.log(this.call, 'callConnect');
|
|
2353
2354
|
data.isAcceptCall = true;
|
|
2354
2355
|
this.currentCall = data;
|
|
2356
|
+
this.isCurrentIncomingCallList.push(data?.id);
|
|
2355
2357
|
}
|
|
2356
2358
|
// } else if(data?.status == 'ringing'){
|
|
2357
2359
|
// this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data: any) => {
|