@vgroup/dialbox 0.5.12 → 0.5.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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +6 -7
- package/esm2020/lib/dialbox.component.mjs +14 -10
- package/fesm2015/vgroup-dialbox.mjs +21 -18
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +18 -15
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1979,21 +1979,21 @@ class CallProgressComponent {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
else if (!this.newIncomingCallsList?.length) {
|
|
1981
1981
|
console.log('test null');
|
|
1982
|
-
if (this.isRinging) {
|
|
1983
|
-
this.incomeingCallSocketService.pause();
|
|
1984
|
-
}
|
|
1985
1982
|
this.isRinging = false;
|
|
1986
1983
|
this.isConcurrentIncoming = false;
|
|
1987
1984
|
this.incomingCallDiv = false;
|
|
1988
1985
|
this.currentCallList = [];
|
|
1989
1986
|
this.currentCall = {};
|
|
1987
|
+
this.cdr.detectChanges();
|
|
1988
|
+
if (this.isRinging) {
|
|
1989
|
+
this.incomeingCallSocketService.pause();
|
|
1990
|
+
}
|
|
1990
1991
|
this.isRinging = false;
|
|
1991
1992
|
this.isCallInProgress = false;
|
|
1992
1993
|
this.isConferenceCallHold = false;
|
|
1993
|
-
this.stopTimer();
|
|
1994
1994
|
this.call.disconnect();
|
|
1995
|
+
this.stopTimer();
|
|
1995
1996
|
this.cdr.detectChanges();
|
|
1996
|
-
// this.twilioService.device.disconnectAll()
|
|
1997
1997
|
this.endCallEvent.emit();
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
@@ -2887,7 +2887,6 @@ class CallProgressComponent {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
isMergeCallAllowed() {
|
|
2889
2889
|
let mergeCallList = this.currentCallList.filter((res) => res.conferenceId == this.currentCall.conferenceId);
|
|
2890
|
-
console.log('mergeCallList', mergeCallList);
|
|
2891
2890
|
return mergeCallList.length <= 1;
|
|
2892
2891
|
}
|
|
2893
2892
|
async mergeCalls() {
|
|
@@ -3838,15 +3837,18 @@ class DialboxComponent {
|
|
|
3838
3837
|
console.log(',,,,,', this.incomingCallnotification);
|
|
3839
3838
|
if (this.incomingCallnotification.data.content == "IncomingCall") {
|
|
3840
3839
|
let callerInfo;
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3840
|
+
let numberList = this.callerIdList.map((res) => res.number);
|
|
3841
|
+
if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
|
|
3842
|
+
if (this.incomingCallnotification.data.data?.c2cBusiness == 'false') {
|
|
3843
|
+
this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
|
|
3844
|
+
console.log('uesrInfo', resInfo);
|
|
3845
|
+
callerInfo = resInfo.c2cInformation;
|
|
3846
|
+
this.incomingCallNotification(callerInfo);
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3849
|
+
else {
|
|
3850
|
+
this.incomingCallNotification({});
|
|
3851
|
+
}
|
|
3850
3852
|
}
|
|
3851
3853
|
}
|
|
3852
3854
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
@@ -4201,6 +4203,7 @@ class DialboxComponent {
|
|
|
4201
4203
|
// Reset dialed number
|
|
4202
4204
|
this.dialedNumber = '';
|
|
4203
4205
|
this.sanitizedNum = '';
|
|
4206
|
+
this.twilioService.device.disconnectAll();
|
|
4204
4207
|
// Emit end call event
|
|
4205
4208
|
this.endCallEvent.emit();
|
|
4206
4209
|
console.log('Call ended successfully');
|