@vgroup/dialbox 0.4.197 → 0.4.199
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.
|
@@ -3839,22 +3839,11 @@ class DialboxComponent {
|
|
|
3839
3839
|
this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
|
|
3840
3840
|
console.log('uesrInfo', resInfo);
|
|
3841
3841
|
callerInfo = resInfo.c2cInformation;
|
|
3842
|
+
this.incomingCallNotification(callerInfo);
|
|
3842
3843
|
});
|
|
3843
3844
|
}
|
|
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;
|
|
3845
|
+
else {
|
|
3846
|
+
this.incomingCallNotification({});
|
|
3858
3847
|
}
|
|
3859
3848
|
}
|
|
3860
3849
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
@@ -4030,6 +4019,36 @@ class DialboxComponent {
|
|
|
4030
4019
|
console.log(e);
|
|
4031
4020
|
}
|
|
4032
4021
|
}
|
|
4022
|
+
incomingCallNotification(callerInfo) {
|
|
4023
|
+
let incomingCall = {
|
|
4024
|
+
conferenceId: 'no',
|
|
4025
|
+
isActive: true,
|
|
4026
|
+
isIncomingCall: true,
|
|
4027
|
+
participantId: this.incomingCallnotification.data.data?.participantId,
|
|
4028
|
+
participants: [
|
|
4029
|
+
{ 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 }
|
|
4030
|
+
],
|
|
4031
|
+
};
|
|
4032
|
+
if (callerInfo) {
|
|
4033
|
+
incomingCall.participants[0]['email'] = callerInfo.email;
|
|
4034
|
+
incomingCall.participants[0]['name'] = callerInfo.name;
|
|
4035
|
+
incomingCall.participants[0]['image'] = callerInfo.image;
|
|
4036
|
+
incomingCall.participants[0]['extension'] = callerInfo.extension;
|
|
4037
|
+
incomingCall.participants[0]['userInfoId'] = callerInfo.id;
|
|
4038
|
+
incomingCall.participants[0]['message'] = callerInfo.message;
|
|
4039
|
+
incomingCall.participants[0]['note'] = callerInfo.note;
|
|
4040
|
+
incomingCall.participants[0]['number'] = callerInfo.number;
|
|
4041
|
+
incomingCall.participants[0]['pointName'] = callerInfo.pointName;
|
|
4042
|
+
incomingCall.participants[0]['softphoneTwilioAuthId'] = callerInfo.softphoneTwilioAuthId;
|
|
4043
|
+
incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
|
|
4044
|
+
incomingCall.participants[0]['subject'] = callerInfo.subject;
|
|
4045
|
+
}
|
|
4046
|
+
this.incomingCallsList.push(incomingCall);
|
|
4047
|
+
this.notificationCallList.push(incomingCall);
|
|
4048
|
+
if (this.incomingCallnotification.data.data?.participantId) {
|
|
4049
|
+
this.isCallInProgress = true;
|
|
4050
|
+
}
|
|
4051
|
+
}
|
|
4033
4052
|
addNumber(num) {
|
|
4034
4053
|
if (num == '#' || num == '*' || num == '+' || Number.isInteger(num)) {
|
|
4035
4054
|
if (num == '#') {
|