francis45
12/04/2025, 4:35 PMVapi Support Bot
12/04/2025, 4:36 PMjs
if (activeCalls >= MAX_CONCURRENCY) {
return; // Wait until a slot is free
}
// Proceed to dequeue and launch the next call
Set MAX_CONCURRENCY to your desired limit (e.g., 3). This ensures only the allowed number of calls are active at any time. For full implementation details, see the [Vapi call queue management guide](https://docs.vapi.ai/calls/call-queue-management).
Source:
- [Call queue management with Twilio](https://docs.vapi.ai/calls/call-queue-management)francis45
12/04/2025, 5:10 PMChiranjeet Mishra
12/07/2025, 4:33 PMjs
if (activeCalls >= MAX_CONCURRENCY) {
return; // Wait until a slot is free
}
// Proceed to dequeue and launch the next call
Set MAX_CONCURRENCY to 3 to ensure that only three calls are active at any time.
For automatically retrying calls that do not connect, you would manually handle retries based on the call status returned after each attempt. Use a status check for conditions like "no answer" or "busy," and then enqueue for a retry.
For more detailed guidance, refer to the [Vapi call queue management guide](https://docs.vapi.ai/calls/call-queue-management).