Reads the signed-in agent's ACD state and queue join list.
Pass lineOwnerId to read a secondary line.
Queue display names are filled from the queue catalog when settings omit them.
The current call queue settings or an error response.
const result = await callQueue.getCallQueueSettings();
Optional lineOwnerId: stringOptional secondary line owner ID; omit for the primary line.
Sets ACD state, queue join, or both.
A queue with allowLogOffEnabled: false stays joined.
The updated call queue settings or an error response.
await callQueue.updateCallQueueSettings({agentACDState: 'AVAILABLE'});
The agent state and/or queue membership updates.
Optional lineOwnerId: stringOptional secondary line owner ID; omit for the primary line.
Asks the calling service to publish the current agent state on Mercury.
Sends the registered WDM device URL. The queue list arrives on telephony_agents.sync.
The sync request result or an error response.
await callQueue.syncTelephonyCalls();
.
Event to listen to.
Callback for event.
.
Event to remove listener on.
Callback for event.
Webex Calling cloud client for call-queue agent status.
Reads and updates
GET/PUT /v1/telephony/config/people/me/settings/queues, asks CXAPI to sync withPOST /v1/telephony/calls/sync/invoke, and keeps the local status current from Mercurytelephony_agentsevents.Example