like-gold
like-gold3d ago

Over concurrecy limit. message.

Is there any option to decline inbound call instead of playing voice message when the channels limit reached? Currently VAPI plays the voice message "Over concurrecy limit." instead of just decline the call
1 Reply
Vapi Support Bot
You can decline inbound calls at the webhook level by returning a Twilio <Reject/> response when your concurrency limit is reached. Here’s a simple example for your /incoming endpoint:
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
});
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. Source: - Call queue management with Twilio
⤵️ Mention @Vapi Support Bot for follow-ups 🐥

Did you find this page helpful?