A support queue application. Callers are placed in a queue with hold music and position announcements. Agents connect separately to dequeue and bridge to the next waiting caller.
- The
enqueueverb to place callers in a named queue - The
waitHookfor hold music and queue position announcements - The
dequeueverb to connect agents with waiting callers - Two separate endpoints: one for callers, one for agents
- A jambonz account with two applications configured:
- Caller-facing application pointing to
/incoming - Agent-facing application pointing to
/agent
- Caller-facing application pointing to
- A hold music audio file URL (replace the example URL in the code)
app.ts— Webhook version (TypeScript using@jambonz/sdk)ws-app.ts— WebSocket version (TypeScript using@jambonz/sdk)