Skip to main content

Queuestats

GET 

/v1/crm/:hizmetNumarasi/queuestats

Returns live status and statistics for the given queues. When queue is omitted, every queue on the PBX is listed. Queue names are given in their short form and are resolved upstream as {hizmetNumarasi}-queue-{queue}; if one of them does not exist, the response has code: "70". If the AMI connection to the PBX cannot be established, code: "90" is returned. Unlike every other command, the success body has no status/message fields — on failure a CrmBaseResponse is returned instead.

Requires api_user|crm_access. Requests can be long-running: netcrm holds the connection until the call is answered or the ring_timeout / wait_response windows (both in seconds) elapse. The gateway timeout is 120s (CRM_SERVICE_TIMEOUT).

Request

Responses

CRM service response, returned verbatim: queue statistics on success, or a CrmBaseResponse on error