@vgroup/dialbox 0.6.2-9.27 → 0.6.2-9.29
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 +33 -3
- package/esm2020/lib/service/incomeing-call-socket.service.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +42 -11
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +33 -3
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1639,7 +1639,7 @@ class IncomeingCallSocketService {
|
|
|
1639
1639
|
// };
|
|
1640
1640
|
setInterval(() => {
|
|
1641
1641
|
this.socket?.send(JSON.stringify(authMessage));
|
|
1642
|
-
},
|
|
1642
|
+
}, 1500);
|
|
1643
1643
|
};
|
|
1644
1644
|
this.socket.onmessage = (msg) => {
|
|
1645
1645
|
// console.log("WS RAW:", msg.data);
|
|
@@ -1956,6 +1956,35 @@ class CallProgressComponent {
|
|
|
1956
1956
|
this.currentCall = currentCall[0] || this.currentCallList[0];
|
|
1957
1957
|
this.isConference = true;
|
|
1958
1958
|
}
|
|
1959
|
+
else if (!currentCall?.length) {
|
|
1960
|
+
this.currentCall = this.currentCallList.find((res) => res?.participantId == this.currentCall?.participantId && res?.isAcceptCall && !res?.isHold);
|
|
1961
|
+
if (!this.currentCall?.participantId) {
|
|
1962
|
+
this.currentCall = this.currentCallList[0];
|
|
1963
|
+
if (this.currentCallList[0]?.isHold && this.currentCallList[0]?.isConference) {
|
|
1964
|
+
this.isConference = true;
|
|
1965
|
+
this.currentCallList.forEach((res) => {
|
|
1966
|
+
if (res.isConference && this.currentCall?.participantId) {
|
|
1967
|
+
this.onholdOrUnholdParticipant({
|
|
1968
|
+
participantId: [res.participantId],
|
|
1969
|
+
conferenceId: res?.conferenceId,
|
|
1970
|
+
hold: false,
|
|
1971
|
+
mute: res?.mute || false,
|
|
1972
|
+
conference: res?.isConference || false
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
else if (this.currentCall?.isHold) {
|
|
1978
|
+
this.onholdOrUnholdParticipant({
|
|
1979
|
+
participantId: [this.currentCall?.participantId],
|
|
1980
|
+
conferenceId: this.currentCall?.conferenceId,
|
|
1981
|
+
hold: false,
|
|
1982
|
+
mute: this.currentCall?.mute || false,
|
|
1983
|
+
conference: this.currentCall?.isConference || false
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1959
1988
|
// if(!this.currentCall) {
|
|
1960
1989
|
// this.currentCall = this.currentCallList.find((res: any)=> res?.participantId == this.currentCall?.participantId && res?.isAcceptCall && !res?.isHold)
|
|
1961
1990
|
// if(!this.currentCall?.participantId) {
|
|
@@ -2052,7 +2081,6 @@ class CallProgressComponent {
|
|
|
2052
2081
|
else if (!incomingData?.id && this.isRinging) {
|
|
2053
2082
|
this.isRinging = this.incomeingCallSocketService.pause();
|
|
2054
2083
|
}
|
|
2055
|
-
console.log(this.isRinging, incomingData);
|
|
2056
2084
|
console.log('currentCallList', this.currentCallList);
|
|
2057
2085
|
this.conferenceCallList = [];
|
|
2058
2086
|
this.conferenceCallList = [
|
|
@@ -2444,7 +2472,9 @@ class CallProgressComponent {
|
|
|
2444
2472
|
this.stopTimer();
|
|
2445
2473
|
this.onEndCall({}, isAllCallEnd);
|
|
2446
2474
|
// this.currentCallList = [];
|
|
2447
|
-
this.
|
|
2475
|
+
if (!this.currentCallList?.length) {
|
|
2476
|
+
this.endCallEvent.emit();
|
|
2477
|
+
}
|
|
2448
2478
|
}
|
|
2449
2479
|
else {
|
|
2450
2480
|
this.onEndCall(this.currentCall, isAllCallEnd);
|