@vgroup/dialbox 0.4.155 → 0.4.156
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 +16 -7
- package/esm2020/lib/service/twilio.service.mjs +2 -3
- package/fesm2015/vgroup-dialbox.mjs +16 -8
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +16 -8
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1594,13 +1594,12 @@ class TwilioService {
|
|
|
1594
1594
|
return this.http.get(`${environment.apiUrl}/utilities/ext/add/incoming/participant/${participantId}/${conferenceId}`, httpOptions);
|
|
1595
1595
|
}
|
|
1596
1596
|
connect(data) {
|
|
1597
|
-
// this.device.disconnect();
|
|
1598
1597
|
if (this.device._activeCall) {
|
|
1599
1598
|
this.device.disconnectAll();
|
|
1600
1599
|
}
|
|
1601
1600
|
return this.device.connect({
|
|
1602
1601
|
params: {
|
|
1603
|
-
Token: this.conferenceCallInfo.conferenceId,
|
|
1602
|
+
Token: this.conferenceCallInfo.conferenceId || data,
|
|
1604
1603
|
ConferenceName: this.conferenceCallInfo.conferenceName
|
|
1605
1604
|
},
|
|
1606
1605
|
rtcConstraints: { audio: { deviceId: 'default' } },
|
|
@@ -2531,13 +2530,22 @@ class CallProgressComponent {
|
|
|
2531
2530
|
});
|
|
2532
2531
|
}
|
|
2533
2532
|
else {
|
|
2534
|
-
this.call = await this.twilioService.connect('');
|
|
2535
|
-
this.incomeingCallSocketService.isCurrentIncomingCallList.push(data?.id);
|
|
2536
|
-
console.log(this.call, 'callConnect');
|
|
2537
|
-
data.isAcceptCall = true;
|
|
2538
2533
|
// this.currentCall = data;
|
|
2539
|
-
|
|
2540
|
-
|
|
2534
|
+
let payload = {
|
|
2535
|
+
recordId: data?.id,
|
|
2536
|
+
ipAddress: '',
|
|
2537
|
+
ipCountry: '',
|
|
2538
|
+
callStatus: 'answered',
|
|
2539
|
+
deviceId: this.deviceId,
|
|
2540
|
+
conferenceId: this.conferenceId || data.conferenceId || 'no'
|
|
2541
|
+
};
|
|
2542
|
+
this.extensionService.setIncomingCallStatus(payload).subscribe(async (res) => {
|
|
2543
|
+
this.call = await this.twilioService.connect(res.conferenceId);
|
|
2544
|
+
this.incomeingCallSocketService.isCurrentIncomingCallList.push(data?.id);
|
|
2545
|
+
console.log(this.call, 'callConnect');
|
|
2546
|
+
data.isAcceptCall = true;
|
|
2547
|
+
this.incomeingCallSocketService.pause();
|
|
2548
|
+
});
|
|
2541
2549
|
}
|
|
2542
2550
|
// } else if(data?.status == 'ringing'){
|
|
2543
2551
|
// this.twilioService.addIncomingParticipant(data?.id, this.twilioService.conferenceCallInfo.conferenceId).subscribe((data: any) => {
|