@vgroup/dialbox 0.4.198 → 0.5.1
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 +2 -1
- package/esm2020/lib/dialbox.component.mjs +36 -17
- package/fesm2015/vgroup-dialbox.mjs +169 -143
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +36 -16
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/dialbox.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2094,6 +2094,7 @@ class CallProgressComponent {
|
|
|
2094
2094
|
to: callData.phone,
|
|
2095
2095
|
fromNumber: callData.from,
|
|
2096
2096
|
scope: 'local',
|
|
2097
|
+
deviceId: this.deviceId,
|
|
2097
2098
|
};
|
|
2098
2099
|
this.currentCall = {
|
|
2099
2100
|
businessNumber: false,
|
|
@@ -3821,7 +3822,7 @@ class DialboxComponent {
|
|
|
3821
3822
|
ngAfterViewInit() {
|
|
3822
3823
|
this.registerDragElement();
|
|
3823
3824
|
}
|
|
3824
|
-
|
|
3825
|
+
ngOnChanges(changes) {
|
|
3825
3826
|
if (changes['incomingCallnotification'].currentValue && this.incomingCallnotification) {
|
|
3826
3827
|
this.isIncomingCallnotification = true;
|
|
3827
3828
|
// let payload = {
|
|
@@ -3836,25 +3837,14 @@ class DialboxComponent {
|
|
|
3836
3837
|
if (this.incomingCallnotification.data.content == "IncomingCall") {
|
|
3837
3838
|
let callerInfo;
|
|
3838
3839
|
if (this.incomingCallnotification.data.data?.c2cBusiness == 'false') {
|
|
3839
|
-
|
|
3840
|
+
this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
|
|
3840
3841
|
console.log('uesrInfo', resInfo);
|
|
3841
3842
|
callerInfo = resInfo.c2cInformation;
|
|
3843
|
+
this.incomingCallNotification(callerInfo);
|
|
3842
3844
|
});
|
|
3843
3845
|
}
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
isActive: true,
|
|
3847
|
-
isIncomingCall: true,
|
|
3848
|
-
participantId: this.incomingCallnotification.data.data?.participantId,
|
|
3849
|
-
participants: [
|
|
3850
|
-
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, participantId: this.incomingCallnotification.data.data?.participantId, name: this.incomingCallnotification.data.data?.fromName, time: '', id: this.incomingCallnotification.data.data?.participantId }
|
|
3851
|
-
],
|
|
3852
|
-
...callerInfo
|
|
3853
|
-
};
|
|
3854
|
-
this.incomingCallsList.push(incomingCall);
|
|
3855
|
-
this.notificationCallList.push(incomingCall);
|
|
3856
|
-
if (this.incomingCallnotification.data.data?.participantId) {
|
|
3857
|
-
this.isCallInProgress = true;
|
|
3846
|
+
else {
|
|
3847
|
+
this.incomingCallNotification({});
|
|
3858
3848
|
}
|
|
3859
3849
|
}
|
|
3860
3850
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
@@ -4030,6 +4020,36 @@ class DialboxComponent {
|
|
|
4030
4020
|
console.log(e);
|
|
4031
4021
|
}
|
|
4032
4022
|
}
|
|
4023
|
+
incomingCallNotification(callerInfo) {
|
|
4024
|
+
let incomingCall = {
|
|
4025
|
+
conferenceId: 'no',
|
|
4026
|
+
isActive: true,
|
|
4027
|
+
isIncomingCall: true,
|
|
4028
|
+
participantId: this.incomingCallnotification.data.data?.participantId,
|
|
4029
|
+
participants: [
|
|
4030
|
+
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: this.incomingCallnotification.data.data?.fromNumber, participantId: this.incomingCallnotification.data.data?.participantId, name: this.incomingCallnotification.data.data?.fromName, time: '', id: this.incomingCallnotification.data.data?.participantId }
|
|
4031
|
+
],
|
|
4032
|
+
};
|
|
4033
|
+
if (callerInfo) {
|
|
4034
|
+
incomingCall.participants[0]['email'] = callerInfo.email;
|
|
4035
|
+
incomingCall.participants[0]['name'] = callerInfo.name;
|
|
4036
|
+
incomingCall.participants[0]['image'] = callerInfo.image;
|
|
4037
|
+
incomingCall.participants[0]['extension'] = callerInfo.extension;
|
|
4038
|
+
incomingCall.participants[0]['userInfoId'] = callerInfo.id;
|
|
4039
|
+
incomingCall.participants[0]['message'] = callerInfo.message;
|
|
4040
|
+
incomingCall.participants[0]['note'] = callerInfo.note;
|
|
4041
|
+
incomingCall.participants[0]['number'] = callerInfo.number;
|
|
4042
|
+
incomingCall.participants[0]['pointName'] = callerInfo.pointName;
|
|
4043
|
+
incomingCall.participants[0]['softphoneTwilioAuthId'] = callerInfo.softphoneTwilioAuthId;
|
|
4044
|
+
incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
|
|
4045
|
+
incomingCall.participants[0]['subject'] = callerInfo.subject;
|
|
4046
|
+
}
|
|
4047
|
+
this.incomingCallsList.push(incomingCall);
|
|
4048
|
+
this.notificationCallList.push(incomingCall);
|
|
4049
|
+
if (this.incomingCallnotification.data.data?.participantId) {
|
|
4050
|
+
this.isCallInProgress = true;
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4033
4053
|
addNumber(num) {
|
|
4034
4054
|
if (num == '#' || num == '*' || num == '+' || Number.isInteger(num)) {
|
|
4035
4055
|
if (num == '#') {
|