yes
11/05/2025, 11:53 AMVapi Support Bot
11/05/2025, 11:54 AMjs
// Check and increment campaign concurrency
async function canProcessCampaignCall(campaignId, maxCampaignConcurrency) {
const key = `campaign:${campaignId}:active_calls`;
const active = await redisClient.get(key) || 0;
if (active < maxCampaignConcurrency) {
await redisClient.incr(key);
return true;
}
return false;
}
Use this check before dequeuing or starting a new call for a campaign. Decrement the counter when a call ends.
For more 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)yes
11/05/2025, 2:30 PMmartyvandeveerdonk
01/07/2026, 4:43 PMChiranjeet Mishra
01/13/2026, 7:06 AMmartyvandeveerdonk
01/14/2026, 8:50 AMChiranjeet Mishra
01/15/2026, 8:23 PM