GKorvin
12/03/2025, 3:18 PMVapi Support Bot
12/03/2025, 3:19 PM<Reject/> response when your concurrency limit is reached. Here’s a simple example for your /incoming endpoint:
js
app.post('/incoming', async (req, res) => {
const activeCalls = await getActiveCalls();
if (activeCalls >= MAX_CONCURRENCY) {
res.type('text/xml').send('<Response><Reject/></Response>');
return;
}
// ...enqueue or process call as usual
});
This will immediately reject the call without playing a message when your channel limit is reached.
For more details, see the [Vapi call queue management documentation](https://docs.vapi.ai/calls/call-queue-management).
Source:
- [Call queue management with Twilio](https://docs.vapi.ai/calls/call-queue-management)