@vgroup/dialbox 0.3.80 → 0.3.82
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.
|
@@ -1757,7 +1757,7 @@ class CallProgressComponent {
|
|
|
1757
1757
|
this.isClickExpand = false;
|
|
1758
1758
|
this.isMinimised = false;
|
|
1759
1759
|
console.log('Call Progress Component');
|
|
1760
|
-
this.
|
|
1760
|
+
this.call = this.twilioService.device;
|
|
1761
1761
|
}
|
|
1762
1762
|
ngOnInit() {
|
|
1763
1763
|
console.log('Call Progress Component ngOnInit');
|
|
@@ -1876,7 +1876,7 @@ class CallProgressComponent {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
getStatus(res) {
|
|
1878
1878
|
if (res.direction == "incoming-call") {
|
|
1879
|
-
if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-
|
|
1879
|
+
if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-progress") {
|
|
1880
1880
|
return true;
|
|
1881
1881
|
}
|
|
1882
1882
|
else {
|
|
@@ -1884,7 +1884,7 @@ class CallProgressComponent {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
else if (res.direction == "outgoing-call") {
|
|
1887
|
-
if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-
|
|
1887
|
+
if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-progress") {
|
|
1888
1888
|
return true;
|
|
1889
1889
|
}
|
|
1890
1890
|
else {
|
|
@@ -1955,7 +1955,7 @@ class CallProgressComponent {
|
|
|
1955
1955
|
conferenceId: this.conferenceId
|
|
1956
1956
|
});
|
|
1957
1957
|
this.callData = Object.assign(Object.assign({}, callData), { participantId: (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true });
|
|
1958
|
-
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
1958
|
+
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
1959
1959
|
console.log('test111111');
|
|
1960
1960
|
// this.currentCall = {...this.callData, img: callData.img ||'assets/images/user.jpg'};
|
|
1961
1961
|
// Initialize isAcceptCall based on current call state to ensure UI renders if already connected
|
|
@@ -2064,7 +2064,8 @@ class CallProgressComponent {
|
|
|
2064
2064
|
},
|
|
2065
2065
|
rtcConstraints: { audio: { deviceId: 'default' } },
|
|
2066
2066
|
});
|
|
2067
|
-
|
|
2067
|
+
console.log('test98998111111', this.call);
|
|
2068
|
+
// this.call['callInfo'] = JSON.parse(JSON.stringify(callData));
|
|
2068
2069
|
this.setupEventListeners();
|
|
2069
2070
|
});
|
|
2070
2071
|
}
|
|
@@ -2290,10 +2291,10 @@ class CallProgressComponent {
|
|
|
2290
2291
|
console.log('this.call', this.call);
|
|
2291
2292
|
console.log('this.call', this.call.status());
|
|
2292
2293
|
// Check if there's an active call
|
|
2293
|
-
if (!this.call || this.call.status() !== 'open') {
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
}
|
|
2294
|
+
// if (!this.call || this.call.status() !== 'open') {
|
|
2295
|
+
// console.error('No active call');
|
|
2296
|
+
// return;
|
|
2297
|
+
// }
|
|
2297
2298
|
// Get the phone number from the contact
|
|
2298
2299
|
const phoneNumber = (_b = (_a = contact === null || contact === void 0 ? void 0 : contact.numbersList) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.number;
|
|
2299
2300
|
const currentCall = this.currentCallList.find((c) => (c === null || c === void 0 ? void 0 : c.phone) === phoneNumber);
|
|
@@ -2678,7 +2679,7 @@ class CallProgressComponent {
|
|
|
2678
2679
|
// handle incoming call accepted
|
|
2679
2680
|
this.startTimer();
|
|
2680
2681
|
this.disbaleEndCallBtn = false;
|
|
2681
|
-
this.call = data.call;
|
|
2682
|
+
// this.call = data.call;
|
|
2682
2683
|
this.isConcurrentIncoming = false;
|
|
2683
2684
|
this.incomingCallDiv = false;
|
|
2684
2685
|
const incomingDetail = this.extensionService.getCallSid();
|