@vgroup/dialbox 0.6.3-0.16 → 0.6.3-0.18
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.
|
@@ -2679,24 +2679,23 @@ class CallProgressComponent {
|
|
|
2679
2679
|
deviceId: this.deviceId,
|
|
2680
2680
|
conferenceId: data?.conferenceId || 'no'
|
|
2681
2681
|
};
|
|
2682
|
-
this.extensionService.setIncomingCallStatus(payload).subscribe(async (res) => {
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
});
|
|
2682
|
+
// this.extensionService.setIncomingCallStatus(payload).subscribe(async (res: any) => {
|
|
2683
|
+
// if (res.status == 200) {
|
|
2684
|
+
this.call = await this.twilioService.connect({ conferenceId: data.conferenceId, conferenceName: `conf_${data.conferenceId}` });
|
|
2685
|
+
this.incomeingCallSocketService.isCurrentIncomingCallList.push(data?.id);
|
|
2686
|
+
console.log(this.call, 'callConnect');
|
|
2687
|
+
data.isAcceptCall = true;
|
|
2688
|
+
this.isIncomingCallBtnDisable = false;
|
|
2689
|
+
this.incomeingCallSocketService.pause();
|
|
2690
|
+
// } else {
|
|
2691
|
+
// let index = this.currentCallList.findIndex((res) => res.participantId == data.participantId)
|
|
2692
|
+
// this.currentCallList.splice(index, 1)
|
|
2693
|
+
// swal("Error", res?.message.join("<br/>"), "error");
|
|
2694
|
+
// this.incomeingCallSocketService.pause();
|
|
2695
|
+
// this.isIncomingCallBtnDisable = false;
|
|
2696
|
+
// this.endCallEvent.emit(data);
|
|
2697
|
+
// }
|
|
2698
|
+
// })
|
|
2700
2699
|
}
|
|
2701
2700
|
async callContact(contact, isUnsavedNumber) {
|
|
2702
2701
|
console.log('Adding participant:', contact);
|
|
@@ -2887,19 +2886,19 @@ class CallProgressComponent {
|
|
|
2887
2886
|
// if(this.currentCall.isConference) {
|
|
2888
2887
|
this.isNewAddedCall = true;
|
|
2889
2888
|
let participentList = [];
|
|
2890
|
-
await this.currentCallList.forEach((resData)
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
})
|
|
2889
|
+
// await this.currentCallList.forEach((resData)=>{
|
|
2890
|
+
// if(!resData.isHold && resData?.participantId) {
|
|
2891
|
+
// participentList.push(resData?.participantId)
|
|
2892
|
+
// }
|
|
2893
|
+
// })
|
|
2895
2894
|
if (participentList?.length) {
|
|
2896
|
-
await this.onholdOrUnholdParticipant({
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
});
|
|
2895
|
+
// await this.onholdOrUnholdParticipant({
|
|
2896
|
+
// participantId: participentList,
|
|
2897
|
+
// conferenceId: this.currentCall.conferenceId,
|
|
2898
|
+
// hold: true,
|
|
2899
|
+
// mute: this.currentCall?.mute || false,
|
|
2900
|
+
// conference: this.currentCall?.isConference || false
|
|
2901
|
+
// });
|
|
2903
2902
|
if (this.currentCall?.isConference) {
|
|
2904
2903
|
this.isConferenceCallHold = true;
|
|
2905
2904
|
}
|