SIP PBX icon

SIP PBX

Queue → Get Queue Stats

AI-generated

Summary

Get Queue Stats

Inputs

  • queueStatsTarget (required) — Select whether to identify the queue by its reference or by a leg ID.
  • ref (required) — Queue reference to query. Visible when queueStatsTarget is 'Queue Ref'.
  • options — Additional options. Contains the Leg ID when queueStatsTarget is 'Leg ID'.

Output shape

object

Contains the queue statistics such as waiting callers, agents, wait times, etc.

Examples

Example 1: Get stats for a specific queue

queueStatsTarget: Queue Ref, ref: 'support_queue'

Example 2: Get stats for the queue associated with a call leg

queueStatsTarget: Leg ID, options.legId: 'leg_12345'

Links

Discussion