Meeting ended due to ejection: Meeting has ended.
# support
v
c
Hi vikta7587, To resolve the "Meeting ended due to ejection: Meeting has ended" error, it might be helpful to adjust the
customerJoinTimeoutSeconds
setting. Increasing this timeout can provide users with more time to join a web call, which may help prevent premature call termination. Here's how you can set this parameter using the Vapi API:
Copy code
typescript
import { VapiClient } from "@vapi-ai/server-sdk";

const client = new VapiClient({ token: process.env.VAPI_API_KEY });

const assistant = await client.assistants.create({
  name: "Customer Support Assistant",
  model: {
    provider: "openai",
    model: "gpt-4.1-mini"
  },
  voice: {
    provider: "11labs",
    voiceId: "21m00Tcm4TlvDq8ikWAM"
  },
  customerJoinTimeoutSeconds: 30 // Increase to 30 seconds or as needed
});
Consider setting a higher timeout according to your user scenarios, such as 30-60 seconds for first-time or international users. Monitor the success rates and adjust as necessary. For further information on timeout configurations, please refer to the [Customer Join Timeout](https://docs.vapi.ai/calls/customer-join-timeout) documentation.
3 Views