@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.
@@ -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({ conferenceName: this.conferenceName });
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.conferenceName = incomingCallData.conferenceName;
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) {