@vgroup/dialbox 0.3.14 → 0.3.16
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/dialbox.component.mjs +5 -2
- package/esm2020/lib/service/twilio.service.mjs +8 -2
- package/fesm2015/vgroup-dialbox.mjs +11 -2
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +11 -2
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/service/twilio.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1632,7 +1632,13 @@ class TwilioService {
|
|
|
1632
1632
|
return this.http.get(environment.apiUrl + '/utilities/softphone/check/countryCode/' + dialledNo, httpOptions);
|
|
1633
1633
|
}
|
|
1634
1634
|
connect(data) {
|
|
1635
|
-
return this.device.connect({
|
|
1635
|
+
return this.device.connectdevice.connect({
|
|
1636
|
+
params: {
|
|
1637
|
+
Token: this.conferenceCallInfo.conferenceId,
|
|
1638
|
+
ConferenceName: this.conferenceCallInfo.conferenceName
|
|
1639
|
+
},
|
|
1640
|
+
rtcConstraints: { audio: { deviceId: 'default' } },
|
|
1641
|
+
});
|
|
1636
1642
|
}
|
|
1637
1643
|
}
|
|
1638
1644
|
TwilioService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TwilioService, deps: [{ token: i1.HttpClient }, { token: ExtensionService }, { token: NotificationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -3120,7 +3126,7 @@ class DialboxComponent {
|
|
|
3120
3126
|
// const data = JSON.parse(incomingCallData.data);
|
|
3121
3127
|
console.log("WS Event Received:", incomingCallData);
|
|
3122
3128
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3123
|
-
this.twilioService.
|
|
3129
|
+
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
3124
3130
|
let participants = [];
|
|
3125
3131
|
if (!!incomingCallData.participants) {
|
|
3126
3132
|
participants = incomingCallData.participants.length > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
|
|
@@ -3140,6 +3146,9 @@ class DialboxComponent {
|
|
|
3140
3146
|
// let device = await this.twilioService.connect('');
|
|
3141
3147
|
// console.log(device, 'callConnect');
|
|
3142
3148
|
}
|
|
3149
|
+
else {
|
|
3150
|
+
this.callData = [];
|
|
3151
|
+
}
|
|
3143
3152
|
// this.initializeTwilio();
|
|
3144
3153
|
// if (incomingCallData.type === "/incoming/call") {
|
|
3145
3154
|
// if (incomingCallData) {
|