@vgroup/dialbox 0.2.54 → 0.2.55
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.
|
@@ -2116,15 +2116,19 @@ class CallProgressComponent {
|
|
|
2116
2116
|
this.getUserInformation(callAuthId);
|
|
2117
2117
|
this.recordCall = recordCall; // Store the recordCall value
|
|
2118
2118
|
const tokenData = await this.getOutgoingCallToken(callAuthId);
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2119
|
+
if (tokenData.status == 200) {
|
|
2120
|
+
setTimeout(async () => {
|
|
2121
|
+
await this.addParticipantToCall({
|
|
2122
|
+
from: callData?.from,
|
|
2123
|
+
route: "OUTGOING",
|
|
2124
|
+
participantNumber: callData?.phone,
|
|
2125
|
+
conferenceId: response?.callauth?.id
|
|
2126
|
+
});
|
|
2127
|
+
await this.connectToDevice(tokenData.token, callData);
|
|
2128
|
+
// Poll the status for 30-45 seconds
|
|
2129
|
+
this.pollCallStatus(callAuthId);
|
|
2130
|
+
}, 1300);
|
|
2131
|
+
}
|
|
2128
2132
|
}
|
|
2129
2133
|
else if (response.status == 201) {
|
|
2130
2134
|
swal("Error", response.message.join("<br/>"), "error");
|