@vgroup/dialbox 0.4.160 → 0.4.161
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 -2
- package/esm2020/lib/dialbox.component.mjs +2 -1
- package/esm2020/lib/service/twilio.service.mjs +3 -3
- package/fesm2015/vgroup-dialbox.mjs +8 -3
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +7 -3
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1599,8 +1599,8 @@ class TwilioService {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
return this.device.connect({
|
|
1601
1601
|
params: {
|
|
1602
|
-
Token: this.conferenceCallInfo
|
|
1603
|
-
ConferenceName: this.conferenceCallInfo.conferenceName
|
|
1602
|
+
Token: this.conferenceCallInfo?.conferenceId || data.conferenceId,
|
|
1603
|
+
ConferenceName: this.conferenceCallInfo?.conferenceName || data.conferenceName
|
|
1604
1604
|
},
|
|
1605
1605
|
rtcConstraints: { audio: { deviceId: 'default' } },
|
|
1606
1606
|
});
|
|
@@ -2139,6 +2139,7 @@ class CallProgressComponent {
|
|
|
2139
2139
|
userId: this.userId || localStorage.getItem('userId'),
|
|
2140
2140
|
proxy: '',
|
|
2141
2141
|
countrycode: '',
|
|
2142
|
+
deviceId: this.deviceId
|
|
2142
2143
|
});
|
|
2143
2144
|
console.log('Initial participantId:', this.addRes?.participantId);
|
|
2144
2145
|
}
|
|
@@ -2539,7 +2540,7 @@ class CallProgressComponent {
|
|
|
2539
2540
|
conferenceId: this.conferenceId || data?.conferenceId || 'no'
|
|
2540
2541
|
};
|
|
2541
2542
|
this.extensionService.setIncomingCallStatus(payload).subscribe(async (res) => {
|
|
2542
|
-
this.call = await this.twilioService.connect(res.conferenceId);
|
|
2543
|
+
this.call = await this.twilioService.connect({ conferenceId: res.conferenceId, conferenceName: res.conferenceName });
|
|
2543
2544
|
this.incomeingCallSocketService.isCurrentIncomingCallList.push(data?.id);
|
|
2544
2545
|
console.log(this.call, 'callConnect');
|
|
2545
2546
|
data.isAcceptCall = true;
|
|
@@ -2581,6 +2582,7 @@ class CallProgressComponent {
|
|
|
2581
2582
|
userId: this.userId,
|
|
2582
2583
|
proxy: '',
|
|
2583
2584
|
countrycode: '',
|
|
2585
|
+
deviceId: this.deviceId
|
|
2584
2586
|
});
|
|
2585
2587
|
this.onholdOrUnholdParticipant({
|
|
2586
2588
|
participantId: [data?.participantId],
|
|
@@ -2653,6 +2655,7 @@ class CallProgressComponent {
|
|
|
2653
2655
|
userId: this.userId,
|
|
2654
2656
|
proxy: '',
|
|
2655
2657
|
countrycode: '',
|
|
2658
|
+
deviceId: this.deviceId
|
|
2656
2659
|
});
|
|
2657
2660
|
// this.callData = {
|
|
2658
2661
|
// ...this.callData,
|
|
@@ -3814,6 +3817,7 @@ class DialboxComponent {
|
|
|
3814
3817
|
}
|
|
3815
3818
|
if (changes['deviceId']) {
|
|
3816
3819
|
localStorage.setItem('deviceId', changes['deviceId'].currentValue);
|
|
3820
|
+
this.twilioService.deviceId = changes['deviceId'].currentValue;
|
|
3817
3821
|
console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
|
|
3818
3822
|
}
|
|
3819
3823
|
if (this.userId) {
|