Skip to main content

CRM

CRM

📄️ Dynamic redirect

Dials `called` and bridges the call into the target named by `redirect_type` + `redirect_menu`. The full target name is derived upstream: `queue` -> `{hizmetNumarasi}-queue-{redirect_menu}`, `announcement` -> `{hizmetNumarasi}-announcement-{redirect_menu}`, `ivr` -> `{redirect_menu}-{hizmetNumarasi}`. If the target or trunk is not defined on the PBX, the response has `code: '70'`. If `brandcode` and `filter` are both sent, an IYS (İleti Yönetim Sistemi) permission check runs first; a number without permission returns `code: '50'` (IYS RED) and the call is not placed.

📄️ Dynamic redirect

Dials `called` and bridges the call into the target named by `redirect_type` + `redirect_menu`. The full target name is derived upstream: `queue` -> `{hizmetNumarasi}-queue-{redirect_menu}`, `announcement` -> `{hizmetNumarasi}-announcement-{redirect_menu}`, `ivr` -> `{redirect_menu}-{hizmetNumarasi}`. If the target or trunk is not defined on the PBX, the response has `code: '70'`. If `brandcode` and `filter` are both sent, an IYS (İleti Yönetim Sistemi) permission check runs first; a number without permission returns `code: '50'` (IYS RED) and the call is not placed.

📄️ 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.

📄️ 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.