@vgroup/dialbox 0.2.67 → 0.2.68

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.
@@ -2127,12 +2127,19 @@ class CallProgressComponent {
2127
2127
  await this.connectToDevice(tokenData.token, callData);
2128
2128
  await this.pollCallStatus(callAuthId);
2129
2129
  setTimeout(async () => {
2130
- await this.addParticipantToCall({
2131
- from: callData?.from,
2132
- route: "OUTGOING",
2133
- participantNumber: callData?.phone,
2134
- conferenceId: this.conferenceId
2135
- });
2130
+ try {
2131
+ const addRes = await this.addParticipantToCall({
2132
+ from: callData?.from,
2133
+ route: "OUTGOING",
2134
+ participantNumber: callData?.phone,
2135
+ conferenceId: this.conferenceId
2136
+ });
2137
+ this.callData = { ...this.callData, participantId: addRes?.participantId };
2138
+ console.log('Initial participantId:', addRes?.participantId);
2139
+ }
2140
+ catch (e) {
2141
+ console.error('Error adding initial participant:', e);
2142
+ }
2136
2143
  }, 1000);
2137
2144
  // Poll the status for 30-45 seconds
2138
2145
  }