Automatic call distribution with real-time agent and queue statistics
Call queues distribute incoming calls to a pool of agents (extensions) using configurable strategies. Callers hear hold music and position announcements while waiting for the next available agent.
| Strategy | Description |
|---|---|
round_robin | Rotate through agents in order |
longest_idle | Call goes to agent idle the longest |
fewest_calls | Call goes to agent with fewest calls today |
random | Random agent selection |
/v1/pbx/call-queuesList all call queues
curl -X GET "https://api.do.dev/v1/pbx/call-queues" \
-H "Authorization: Bearer do_live_your_key_here"{
"queues": [
{
"id": "q_sales",
"name": "Sales Queue",
"strategy": "longest_idle",
"agents": ["ext_101", "ext_102", "ext_103"],
"maxWaitTime": 300,
"maxQueueSize": 20,
"wrapUpTime": 15,
"activeCalls": 2,
"waitingCallers": 1
}
]
}namestringrequiredstrategystringrequiredagentsstring[]requiredmaxWaitTimenumbermaxQueueSizenumberwrapUpTimenumberjoinMessagestringholdMusicIdstringannouncePositionbooleanannounceWaitTimebooleanThe queue stats endpoint returns live metrics:
/v1/pbx/call-queues/statsGet real-time queue statistics
{
"stats": {
"totalQueues": 3,
"totalAgents": 12,
"totalWaiting": 4,
"totalActive": 8,
"averageWaitTime": 45
}
}