@vgroup/dialbox 0.6.3-0.13 → 0.6.3-0.14

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.
@@ -3760,69 +3760,8 @@ class DialboxComponent {
3760
3760
  this.isLoadershow = false;
3761
3761
  this.isIncomingCallnotification = false;
3762
3762
  this.notificationCallList = [];
3763
- this.conferenceCallInfo = {
3764
- "createdAt": "Tue Dec 30 07:53:51 UTC 2025",
3765
- "conferenceName": "conf_6953850f1522800c4f3cc715",
3766
- "conferenceId": "6953850f1522800c4f3cc715",
3767
- "conferenceStatus": "completed",
3768
- "isActive": false,
3769
- "conferenceSid": "CFa38eab13863a6af9827b348120e369b8",
3770
- "participants": [
3771
- {
3772
- "callDuration": 88,
3773
- "callSid": "CA48abba51da47c32749ba568d7f4eccca",
3774
- "role": "callee",
3775
- "joinedAt": "Tue Dec 30 07:53:54 UTC 2025",
3776
- "isHold": false,
3777
- "isConference": true,
3778
- "userId": "69392c670665b958db876888",
3779
- "forwardedTo": "",
3780
- "leftAt": "Tue Dec 30 07:55:25 UTC 2025",
3781
- "duration": 2,
3782
- "isLeft": true,
3783
- "conferenceId": "6953850f1522800c4f3cc715",
3784
- "from": "+12252519886",
3785
- "to": "+916353645844",
3786
- "status": "completed",
3787
- "direction": "outgoing-call"
3788
- },
3789
- {
3790
- "callDuration": 65,
3791
- "callSid": "CAcbc286a9e6559f1a3f1b51f48ce3f73b",
3792
- "role": "callee",
3793
- "joinedAt": "Tue Dec 30 07:54:14 UTC 2025",
3794
- "isHold": false,
3795
- "isConference": true,
3796
- "userId": "69392c670665b958db876888",
3797
- "forwardedTo": "",
3798
- "leftAt": "Tue Dec 30 07:55:25 UTC 2025",
3799
- "duration": 2,
3800
- "isLeft": true,
3801
- "conferenceId": "6953850f1522800c4f3cc715",
3802
- "toName": "Test ",
3803
- "fromName": "Test ",
3804
- "from": "+12252519886",
3805
- "to": "+916354564733",
3806
- "status": "completed",
3807
- "direction": "outgoing-call"
3808
- },
3809
- {
3810
- "callDuration": 25,
3811
- "callSid": "CA2fb6b893cf406c033311e3b11d6e760f",
3812
- "joinedAt": "Tue Dec 30 07:55:06 UTC 2025",
3813
- "isHold": false,
3814
- "isConference": true,
3815
- "forwardedTo": "",
3816
- "duration": 1,
3817
- "isLeft": true,
3818
- "conferenceId": "6953850f1522800c4f3cc715",
3819
- "from": "+16098065088",
3820
- "to": "+12252302470",
3821
- "status": "no-answer",
3822
- "direction": "incoming-call"
3823
- }
3824
- ]
3825
- };
3763
+ this.deviceNumberList = [];
3764
+ this.conferenceCallInfo = {};
3826
3765
  this.closeDialpadEvent = new EventEmitter();
3827
3766
  this.callInitiated = new EventEmitter();
3828
3767
  this.endCallEvent = new EventEmitter();
@@ -3899,14 +3838,13 @@ class DialboxComponent {
3899
3838
  // so we can auto-open on incoming calls.
3900
3839
  this.initializeTwilio();
3901
3840
  this.incomeingCallSocketService.connect(this.deviceId);
3902
- let deviceNumberList = this.callerIdList.map((res) => res.number);
3903
3841
  try {
3904
3842
  this.incomeingCallSocketService.listen().subscribe(async (incomingCallData) => {
3905
3843
  this.twilioService.conferenceCallInfo = incomingCallData;
3906
3844
  incomingCallData = incomingCallData?.length > 0 ? incomingCallData.filter((item) => item.participants?.length > 0) : [];
3907
3845
  let ourNumber = {};
3908
3846
  incomingCallData.forEach((callInfo, i) => {
3909
- ourNumber = callInfo.participants.find((resData) => ((deviceNumberList.includes(resData?.from) && resData?.to == 'c2c_softphone_client') || (deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call')) && !resData?.isLeft);
3847
+ ourNumber = callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.to == 'c2c_softphone_client') || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call')) && !resData?.isLeft);
3910
3848
  });
3911
3849
  if (!!incomingCallData?.length && ourNumber?.id) {
3912
3850
  // this.incomingCallsList = incomingCallData.participants.filter((item: any) => !item.isLeft) || [];
@@ -4302,8 +4240,10 @@ class DialboxComponent {
4302
4240
  isIncomingCall: true,
4303
4241
  participantId: this.incomingCallnotification.data.data?.participantId,
4304
4242
  participants: [
4305
- { direction: "incoming-call", businessNumber: this.incomingCallnotification.data.data?.c2cBusiness == 'true' ? true : false, img: this.incomingCallnotification.data.data?.fromImage || this.incomingCallnotification.data.data?.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, to: this.incomingCallnotification.data.data?.toNumber,
4306
- from: this.incomingCallnotification.data.data?.fromNumber, fromName: this.incomingCallnotification.data.data?.fromName, participantId: this.incomingCallnotification.data.data?.participantId, name: this.incomingCallnotification.data.data?.fromName, time: '', id: this.incomingCallnotification.data.data?.participantId, conferenceId: this.incomingCallnotification?.data?.data?.conferenceId }
4243
+ {
4244
+ direction: "incoming-call", businessNumber: this.incomingCallnotification.data.data?.c2cBusiness == 'true' ? true : false, img: this.incomingCallnotification.data.data?.fromImage || this.incomingCallnotification.data.data?.image || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, to: this.incomingCallnotification.data.data?.toNumber,
4245
+ from: this.incomingCallnotification.data.data?.fromNumber, fromName: this.incomingCallnotification.data.data?.fromName, participantId: this.incomingCallnotification.data.data?.participantId, name: this.incomingCallnotification.data.data?.fromName, time: '', id: this.incomingCallnotification.data.data?.participantId, conferenceId: this.incomingCallnotification?.data?.data?.conferenceId
4246
+ }
4307
4247
  ],
4308
4248
  };
4309
4249
  this.notificationCallList = await this.notificationCallList.filter((res) => res?.endTime > (new Date().getTime()));
@@ -4416,6 +4356,7 @@ class DialboxComponent {
4416
4356
  //this.callerIdList = res.callerIdList.filter(item => item.type === "C2C Softphone Number");
4417
4357
  this.callerIdList = res.callerIdList.filter((item) => item.voiceFeature === true);
4418
4358
  // this.callerIdList = res.callerIdList;
4359
+ this.deviceNumberList = this.callerIdList.map((res) => res.number);
4419
4360
  if (this.callerIdList.length == 1) {
4420
4361
  this.selectedCallerId = this.callerIdList[0];
4421
4362
  }