@vgroup/dialbox 0.7.42 → 0.7.44
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.
|
@@ -3188,7 +3188,7 @@ class CallProgressComponent {
|
|
|
3188
3188
|
if (callInfo?.participants?.length) {
|
|
3189
3189
|
ourNumberInfo = callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.client) || (this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && !resData?.businessNumber)) && !resData?.isLeft && this.getStatus(resData));
|
|
3190
3190
|
}
|
|
3191
|
-
const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo?.clientSid)
|
|
3191
|
+
// const capturedCall = this.twilioService.getIncomingCallById(incomingCallInfo?.clientSid);
|
|
3192
3192
|
this.twilioService.acceptedCallList.forEach((call) => {
|
|
3193
3193
|
call.mute(true);
|
|
3194
3194
|
});
|
|
@@ -3204,12 +3204,12 @@ class CallProgressComponent {
|
|
|
3204
3204
|
if (res?.status != 200) {
|
|
3205
3205
|
swal("Error", res?.message?.join?.("<br/>") || 'Internal Server Error', "error");
|
|
3206
3206
|
}
|
|
3207
|
-
this.add(incomingCallInfo, ourNumberInfo
|
|
3207
|
+
this.add(incomingCallInfo, ourNumberInfo);
|
|
3208
3208
|
});
|
|
3209
3209
|
this.isConferenceCallHold = true;
|
|
3210
3210
|
}
|
|
3211
3211
|
else {
|
|
3212
|
-
this.add(incomingCallInfo, ourNumberInfo
|
|
3212
|
+
this.add(incomingCallInfo, ourNumberInfo);
|
|
3213
3213
|
}
|
|
3214
3214
|
}
|
|
3215
3215
|
async add(data, ourNumberInfo, capturedCall) {
|
|
@@ -3218,8 +3218,9 @@ class CallProgressComponent {
|
|
|
3218
3218
|
this.isIncomingCallBtnDisable = true;
|
|
3219
3219
|
this.cdr.detectChanges();
|
|
3220
3220
|
let intervalId = setInterval(() => {
|
|
3221
|
-
const callToAccept =
|
|
3221
|
+
const callToAccept = this.twilioService.getIncomingCallById(data?.clientSid);
|
|
3222
3222
|
if (callToAccept?.parameters?.CallSid) {
|
|
3223
|
+
console.log('callToAcceptttttttttttttttttttttttttttttttttt', callToAccept, data?.id);
|
|
3223
3224
|
callToAccept.accept();
|
|
3224
3225
|
const acceptedEntry = {
|
|
3225
3226
|
call: callToAccept,
|