@vgroup/dialbox 0.2.59 → 0.2.60

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,13 +2116,15 @@ class CallProgressComponent {
2116
2116
  this.recordCall = recordCall; // Store the recordCall value
2117
2117
  const tokenData = await this.getOutgoingCallToken(callAuthId);
2118
2118
  await this.connectToDevice(tokenData.token, callData);
2119
- this.pollCallStatus(callAuthId);
2120
- await this.addParticipantToCall({
2121
- from: callData?.from,
2122
- route: "OUTGOING",
2123
- participantNumber: callData?.phone,
2124
- conferenceId: response?.callauth?.id
2125
- });
2119
+ await this.pollCallStatus(callAuthId);
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
+ }, 1000);
2126
2128
  // Poll the status for 30-45 seconds
2127
2129
  }
2128
2130
  else if (response.status == 201) {