You can test API methods on the interactive API browser page and without writing code
Some of the resources described on the page may not be available by default due to the type of application (see Creating and authorizing applications).
Description of Data Structures
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following parameters can be configured for the queue: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Strategy Description | All available agents are called simultaneouslyring-all
|
Queue Strategies
At any strategy the agents with the lowest level are called first. If the agents of the current call level are busy or are in a state of temporary unavailability, for example, after no answer or rejection of the previous call (see the agent configuration), then agents of the next level are called. If the parameter tier_rules_apply valueis true, the next-level agents start to be called after the time specified by the parameter tier_rule_wait_second, the report begins when the current level agents start calling. If the parameter tier_rule_wait_multiply_level value is true, then the time tier_rule_wait_second is multiplied by the agent level.
|
Queue Strategies
At any strategy the agents with the lowest level are called first. If the agents of the current call level are busy or are in a state of temporary unavailability, for example, after no answer or rejection of the previous call (see the agent configuration), then agents of the next level are called. If the parameter tier_rules_apply valueis true, the
agents with the lowest level are called first thennext-level agents start to be called after the time specified by the parameter tier_rule_wait_second, the report begins when the
next level agents are called and so onlongest-idle-agent
current level agents start calling. If the parameter tier_rule_wait_multiply_level value is true, then the time tier_rule_wait_second is multiplied by the agent level.
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
|
Queue Agents
The queue agents can be of two types: local, when the agent is an extension number of the telephone terminal type, and remote, when the specified external number is the queue agent. Both types of agents have the following configurable parameters:
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title | Parameters of the queue agents |
---|
Parameter
Type
Mandatory
Queue agent management
In order for an agent to receive calls from a queue, the agent must be added there. Adding the agent to the queue, removing it from there, as well as changing its level and position in the queue are carried out through the resources "local agent in the queue"and "external agent in the queue" for local and external agents, respectively.
When adding a local agent to the queue, the following parameters can be configured:
Parameter | Type | Mandatory | Default value | Description |
---|
agent_ |
id | long |
yes | 0 |
Если агент при попытке вызова был занят, то в течение указанного в этом параметре времени в секундах ему не будут направляться вызовы
Identifier of the local agent | |
level | long |
no | 0 |
Время в секундах, в течение которого осуществляется вызов агента
extra_params
string
нет
Дополнительные параметры
name
string
нет
Имя агента очереди
no_answer_delay_time
long
нет
0
Если агент не ответил на вызов, то в течение указанного в этом параметре времени в секундах ему не будут направляться вызовы
number
string
нет
Номер агента очереди
reject_delay_time
long
нет
0
Время в секундах с момента последнего отклонения вызова агентом, в течение которого ему не будут направляться вызовы
status
object
нет
Статус агента. Принимает одно из значений: "logged_out", "available". В статусе available агент доступен для вызовов, в статусе logged_out вызовы агенту не направляются
wrap_up_time
long
нет
0
Время в секундах с момента последнего разговора агента, в течение которого ему не будут направляться вызовы
agent_sound_id
long
нет
0
Звук, проигрываемый вызывающему абоненту и агенту очереди при ответе этим агентом
Управление агентом в очереди
Для того, чтобы агент мог принимать вызовы из очереди, он должен быть туда добавлен. Добавление агента в очередь, его удаление оттуда, а также изменение его уровня и позиции в очереди осуществляются через ресурсы "локальный агент в очереди" и "внешний агент в очереди" для локальных и внешних агентов соответственно.
При добавлении локального агента в очередь возможно настроить следующие параметры:
Параметр
Тип
Обязательный
Значение по умолчанию
Описание
agent_id
long
да
0
Идентификатор локального агента
level
long
нет
0
Уровень агента в очереди
position
long
нет
0
Позиция агента в очереди
При добавлении внешнего агента в очередь возможно настроить следующие параметры:
Параметр
Тип
Обязательный
Значение по умолчанию
Описание
agent_id
long
да
0
Идентификатор внешнего агента
level
long
нет
0
Уровень агента в очереди
position
long
нет
0
Позиция агента в очереди
Значение счетчика звонящих в очереди (формируется на основании событий dial-in и hangup) можно получить с помощью ресурса
GET /extension/{extension_id}/queue/status/
Данный ресурс возвращает ответы вида:
Code Block |
---|
{
"answered_members": 0,
"trying_members": 0,
"waiting_members": 0
} |
где параметр trying_members – это количество звонящих и ожидающих ответа агентов очереди.
Т.к. количество запросов лимитировано, рекомендуется запрашивать количество звонящих в очереди именно по событиям очереди, можно добавить события answer самих внутренних номеров (агентов очереди).
Примеры
В качестве примера создадим внутренний номер типа "очередь", настроим его, создадим локальных и внешних агентов и добавим их в очередь.
Используя ресурс "
Внутренний номер", создадим внутренний номер типа "queue":
Ответ системы:
Code Block |
---|
{
"status": "active",
"domain": "sip.ringme.ru",
"create_date": "2020-03-16 12:11:13",
"name": "000*370",
"dial_rule_limit": null,
"extension_group_id": null,
"label": "тестовая очередь",
"caller_id_name": null,
"client_id": 12,
"extra_params": null,
"message_did": null,
"dial_rule_id": null,
"ani_rfc3325": false,
"type": "queue",
"id": 208,
"did_as_transfer_caller_id": null
} |
Настроим очередь следующим образом:
Главным звуком очереди должен являться звук с идентификатором 36;
Звуком анонса звук с идентификатором 35;
Анонс должен проигрываться через каждые 15 секунд;
Максимальное время ожидания в очереди – 1800 секунд;
Если было превышено максимальное время ожидания, переадресовывать вызывающего абонента на номер 333;
Стратегия обзвона агентов очереди – "Звонить всем";
Запись разговоров в очереди включена;
Агенты вышестоящего уровня должны начинать вызываться, если агенты нижестоящего уровня не отвечают в течение 15 секунд.
Expand | ||
---|---|---|
| ||
|
Создадим локального агента очереди:
Ответ системы:
Code Block |
---|
{
"status": "available",
"name": null,
"busy_delay_time": 10,
"no_answer_delay_time": 10,
"call_timeout": 30,
"wrap_up_time": 0,
"extension_id": 117,
"reject_delay_time": 10,
"extra_params": null,
"id": 1
} |
Создадим внешнего агента очереди:
Ответ системы:
Code Block |
---|
{
"busy_delay_time": 10,
"call_timeout": 30,
"extra_params": "string",
"id": 9,
"name": "string",
"no_answer_delay_time": 10,
"number": "89876543210",
"reject_delay_time": 10,
"status": "available",
"wrap_up_time": 0
} |
Добавим локального агента в очередь с первой позицией и первым уровнем:
Ответ системы:
Code Block |
---|
{
"position": 1,
"agent_id": 1,
"level": 1
} |
Добавим внешнего агента в очередь с первой позицией и вторым уровнем:
Ответ системы:
Agent level in queue | ||||
position | long | no | 0 | Agent position in the queue |
When adding an external agent to the queue, the following parameters can be configured:
Parameter | Type | Mandatory | Default value | Description |
---|---|---|---|---|
agent_id | long | yes | 0 | Identifier of the external agent |
level | long | no | 0 | Agent level in queue |
position | long | no | 0 | Agent position in the queue |
The value of the counter of callers in the queue (generated based on dial-in and hangup events) can be obtained using the resource
GET /extension/{extension_id}/queue/status/
This resource returns the responses in the form:
Code Block | ||
---|---|---|
| ||
{
"answered_members": 0,
"trying_members": 0,
"waiting_members": 0
} |
where the parameter trying_members is the number of callers and waiting the queue agents' response. Because the number of requests is limited, it is recommended to request the number of callers in the queue exactly by the queue events. Is possible to add events answer of the extension numbers themselves (the queue agents).
List of callers in the queue
GET /extension/{extension_id}/queue/status/members/
This resource returns the responses in the form:
Code Block | ||
---|---|---|
| ||
{
"call_api_id": "string",
"joined_datetime": "string",
"number": "string",
"serving_agent": "string",
"state": "string",
"wait_time": 0
} |
Through the call_api_id
parameter, you can transfer or delete a call using Current Calls (/current_calls/)
Examples
As an example, let's create an internal number of the "queue" type, configure it, create local and external agents and add them to the queue.
1. Using the "resource Extension number", create an internal number of the "queue" type:
Tabs |
---|
[{"content":{"version":1,"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"In the "},{"type":"text","text":"authentication ","marks":[{"type":"strong"}]},{"type":"text","text":"section enter the "},{"type":"text","text":"Application_ID","marks":[{"type":"strong"}]},{"type":"text","text":" and "},{"type":"text","text":"Application_Secret","marks":[{"type":"strong"}]},{"type":"text","text":" values obtained during the application registration in the "},{"type":"text","text":"client_id ","marks":[{"type":"strong"}]},{"type":"text","text":"and "},{"type":"text","text":"client_secret","marks":[{"type":"strong"}]},{"type":"text","text":" fields, then click on the \""},{"type":"text","text":"Try it out!","marks":[{"type":"strong"}]},{"type":"text","text":"\" button. If the application data is correct, an access token ("},{"type":"text","text":"access_token","marks":[{"type":"strong"}]},{"type":"text","text":") will be returned in response. The received access token should be entered into the \""},{"type":"text","text":"Access Token Field","marks":[{"type":"strong"}]},{"type":"text","text":"\" at the top of the page and saved by clicking the \""},{"type":"text","text":"Set Token","marks":[{"type":"strong"}]},{"type":"text","text":"\" button."}]},{"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"default"},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Method","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Resource","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data","marks":[{"type":"strong"}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"POST"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"/client/@me/extension/"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"{"},{"type":"hardBreak"},{"type":"text","text":"\"status\": \"active\","},{"type":"hardBreak"},{"type":"text","text":"\"name\": \"370\","},{"type":"hardBreak"},{"type":"text","text":"\"label\": \"test queue\","},{"type":"hardBreak"},{"type":"text","text":"\"type\": \"queue\""},{"type":"hardBreak"},{"type":"text","text":"}"}]}]}]}]},{"type":"paragraph","content":[]}]},"id":"05990ccf-3682-45b7-9af4-53738715673b","label":"Interactive API Browser","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"To send requests using the cURL program, set the values of the "},{"type":"text","text":"url ","marks":[{"type":"strong"}]},{"type":"text","text":"and "},{"type":"text","text":"access_token","marks":[{"type":"strong"}]},{"type":"text","text":" variables:"}]},{"type":"paragraph","content":[{"type":"text","text":"export url=\"https://<hostname>/api/ver1.0\"","marks":[{"type":"code"}]},{"type":"text","text":" "},{"type":"hardBreak"},{"type":"text","text":"(where the hostname — is the hostname of the API-server provider of IP-telephony),"}]},{"type":"paragraph","content":[{"type":"text","text":"export access_token=\"8SNsrS0jV35vfmKqKeKtRrHfpbg4UX\"","marks":[{"type":"code"}]},{"type":"text","text":" "},{"type":"hardBreak"},{"type":"text","text":"(the received access token)."}]},{"type":"paragraph","content":[{"type":"text","text":"Send a request:"}]},{"type":"codeBlock","attrs":{"language":"shell"},"content":[{"type":"text","text":"curl \\\n-H \"Authorization: Bearer ${access_token}\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n \"status\": \"active\",\n \"name\": \"370\",\n \"label\": \"test queue\",\n \"type\": \"queue\"\n}' \\\n-X POST ${url}/client/@me/extension/"}]}]},"id":"9cea3dfd-9b7d-4595-8832-d57c8828065a","label":"cURL Program","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"To send requests in Python, set the values of the variables URL and ACCESS_TOKEN:"}]},{"type":"paragraph","content":[{"type":"text","text":"URL = \"https://<hostname>/api/ver1.0\"","marks":[{"type":"code"}]},{"type":"hardBreak"},{"type":"text","text":"(where the hostname — is the hostname of the API-server provider of IP-telephony),"}]},{"type":"paragraph","content":[{"type":"text","text":"ACCESS_TOKEN = \"8SNsrS0jV35vfmKqKeKtRrHfpbg4UX\"","marks":[{"type":"code"}]},{"type":"hardBreak"},{"type":"text","text":"(the received access token)."}]},{"type":"codeBlock","attrs":{"language":"python"},"content":[{"type":"text","text":"#!/usr/bin/python\n\nimport requests\n\nurl = f\"{URL}/client/@me/extension/\"\nheaders = {\n 'Authorization': f'Bearer {ACCESS_TOKEN}',\n 'Content-Type': 'application/json'\n}\ndata = '''{\n \"status\": \"active\",\n \"name\": \"370\",\n \"label\": \"test queue\",\n \"type\": \"queue\"\n}'''\nresponse = requests.post(url, headers=headers, data=data)\nprint(response.text)"}]}]},"id":"ad445d19-f68f-49b4-8af5-5a82064683c1","label":"In Python3","type":"tab"}] |
System response:
Code Block | ||
---|---|---|
| ||
{
"status": "active",
"domain": "sip.ringme.ru",
"create_date": "2020-03-16 12:11:13",
"name": "000*370",
"dial_rule_limit": null,
"extension_group_id": null,
"label": "test queue",
"caller_id_name": null,
"client_id": 12,
"extra_params": null,
"message_did": null,
"dial_rule_id": null,
"ani_rfc3325": false,
"type": "queue",
"id": 208,
"did_as_transfer_caller_id": null
} |
2. Set up the queue as follows:
The main sound of the queue should be the sound with the ID 36;
The sound of the announcement is the sound with the identifier 35;
The announcement should be played every 15 seconds;
The maximum waiting time in the queue is 1800 seconds;
If the maximum waiting time has been exceeded forward the caller to the number 333;
Calling strategy of the queue agents - "Call everyone";
Recording of conversations in the queue is enabled;
Higher-level agents should start to be dialed if the lower-level agents do not respond within 15 seconds.
Tabs |
---|
[{"content":{"version":1,"type":"doc","content":[{"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"default"},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Method","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Resource","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data","marks":[{"type":"strong"}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"PUT"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"/extension/208/queue/"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"{"},{"type":"hardBreak"},{"type":"text","text":"\"announce_frequency\": 15,"},{"type":"hardBreak"},{"type":"text","text":"\"announce_sound\": 35,"},{"type":"hardBreak"},{"type":"text","text":"\"max_wait_time\": 1800,"},{"type":"hardBreak"},{"type":"text","text":"\"record_enabled\": true,"},{"type":"hardBreak"},{"type":"text","text":"\"sound\": 36,"},{"type":"hardBreak"},{"type":"text","text":"\"sound_type\": \"music\","},{"type":"hardBreak"},{"type":"text","text":"\"strategy\": \"ring-all\","},{"type":"hardBreak"},{"type":"text","text":"\"timeout_transfer_dst\": \"333\","},{"type":"hardBreak"},{"type":"text","text":"\"tier_rules_apply\": true,"},{"type":"hardBreak"},{"type":"text","text":"\"tier_rule_wait_second\": 5"},{"type":"hardBreak"},{"type":"text","text":"}"}]}]}]}]},{"type":"paragraph","content":[]}]},"id":"cfa34061-5173-4266-8553-826b99872427","label":"Interactive API Browser","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"shell"},"content":[{"type":"text","text":"curl \\\n-H \"Authorization: Bearer ${access_token}\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n \"announce_frequency\": 15,\n \"announce_sound\": 35,\n \"max_wait_time\": 1800,\n \"record_enabled\": true,\n \"sound\": 36,\n \"sound_type\": \"music\",\n \"strategy\": \"ring-all\",\n \"timeout_transfer_dst\": \"333\",\n \"tier_rules_apply\": true,\n \"tier_rule_wait_second\": 5\n}' \\\n-X PUT ${url}/extension/208/queue/"}]}]},"id":"d699e743-0596-49b7-a55c-21ed3c0d41b1","label":"cURL Program","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"python"},"content":[{"type":"text","text":"#!/usr/bin/python\n\nimport requests\n\nurl = f\"{URL}/extension/208/queue/\"\nheaders = {\n 'Authorization': f'Bearer {ACCESS_TOKEN}',\n 'Content-Type': 'application/json'\n}\ndata = '''{\n \"announce_frequency\": 15,\n \"announce_sound\": 35,\n \"max_wait_time\": 1800,\n \"record_enabled\": true,\n \"sound\": 36,\n \"sound_type\": \"music\",\n \"strategy\": \"ring-all\",\n \"timeout_transfer_dst\": \"333\",\n \"tier_rules_apply\": true,\n \"tier_rule_wait_second\": 5\n}'''\nresponse = requests.put(url, headers=headers, data=data)\nprint(response.text)"}]}]},"id":"6c5ca2f5-3eb1-43e9-9601-d2ea90f74621","label":"In Python3","type":"tab"}] |
Expand | |||||
---|---|---|---|---|---|
| |||||
|
3. Create a local queue agent:
Tabs |
---|
[{"content":{"version":1,"type":"doc","content":[{"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"default"},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Method","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Resource","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data","marks":[{"type":"strong"}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"POST"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"/client/@me/agent/local/"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"{"},{"type":"hardBreak"},{"type":"text","text":"\"busy_delay_time\": 10,"},{"type":"hardBreak"},{"type":"text","text":"\"call_timeout\": 30,"},{"type":"hardBreak"},{"type":"text","text":"\"extension_id\": 117,"},{"type":"hardBreak"},{"type":"text","text":"\"no_answer_delay_time\": 10,"},{"type":"hardBreak"},{"type":"text","text":"\"reject_delay_time\": 10,"},{"type":"hardBreak"},{"type":"text","text":"\"status\": \"available\","},{"type":"hardBreak"},{"type":"text","text":"\"wrap_up_time\": 0"},{"type":"hardBreak"},{"type":"text","text":"}"}]}]}]}]},{"type":"paragraph","content":[]}]},"id":"b415ac14-64b6-4bcc-bf50-643675a5f497","label":"Interactive API Browser","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"shell"},"content":[{"type":"text","text":"curl \\\n-H \"Authorization: Bearer ${access_token}\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n \"busy_delay_time\": 10,\n \"call_timeout\": 30,\n \"extension_id\": 117,\n \"no_answer_delay_time\": 10,\n \"reject_delay_time\": 10,\n \"status\": \"available\",\n \"wrap_up_time\": 0\n}' \\\n-X POST ${url}/client/@me/agent/local/"}]}]},"id":"5c948ba1-1d15-4867-951d-60aac7e90488","label":"cURL Program","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"python"},"content":[{"type":"text","text":"#!/usr/bin/python\n\nimport requests\n\nurl = f\"{URL}/client/@me/agent/local/\"\nheaders = {\n 'Authorization': f'Bearer {ACCESS_TOKEN}',\n 'Content-Type': 'application/json'\n}\ndata = '''{\n \"busy_delay_time\": 10,\n \"call_timeout\": 30,\n \"extension_id\": 117,\n \"no_answer_delay_time\": 10,\n \"reject_delay_time\": 10,\n \"status\": \"available\",\n \"wrap_up_time\": 0\n}'''\nresponse = requests.post(url, headers=headers, data=data)\nprint(response.text)"}]}]},"id":"1b2903ee-b1c4-4910-887b-fe89ea12f48e","label":"In Python3","type":"tab"}] |
System response:
Code Block | ||
---|---|---|
| ||
{
"status": "available",
"name": null,
"busy_delay_time": 10,
"no_answer_delay_time": 10,
"call_timeout": 30,
"wrap_up_time": 0,
"extension_id": 117,
"reject_delay_time": 10,
"extra_params": null,
"id": 1
} |
4. Create an external queue agent:
Tabs |
---|
[{"content":{"version":1,"type":"doc","content":[{"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"default"},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Method","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Resource","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data","marks":[{"type":"strong"}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"POST"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"/client/@me/agent/remote/"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"{"},{"type":"hardBreak"},{"type":"text","text":"\"busy_delay_time\": 10,"},{"type":"hardBreak"},{"type":"text","text":"\"call_timeout\": 30,"},{"type":"hardBreak"},{"type":"text","text":"\"no_answer_delay_time\": 10,"},{"type":"hardBreak"},{"type":"text","text":"\"number\": \"89215650644\","},{"type":"hardBreak"},{"type":"text","text":"\"reject_delay_time\": 10,"},{"type":"hardBreak"},{"type":"text","text":"\"status\": \"available\","},{"type":"hardBreak"},{"type":"text","text":"\"wrap_up_time\": 0"},{"type":"hardBreak"},{"type":"text","text":"}"}]}]}]}]},{"type":"paragraph","content":[]}]},"id":"e699b2e4-9f7b-4eb5-a513-20e851f57276","label":"Interactive API Browser","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"shell"},"content":[{"type":"text","text":"curl \\\n-H \"Authorization: Bearer ${access_token}\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n \"busy_delay_time\": 10,\n \"call_timeout\": 30,\n \"no_answer_delay_time\": 10,\n \"number\": \"89215650644\",\n \"reject_delay_time\": 10,\n \"status\": \"available\",\n \"wrap_up_time\": 0\n}' \\\n-X POST ${url}/client/@me/agent/remote/"}]}]},"id":"a0343619-ad25-4da0-aa27-2251c04fd824","label":"cURL Program","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"python"},"content":[{"type":"text","text":"#!/usr/bin/python\n\nimport requests\n\nurl = f\"{URL}/client/@me/agent/remote/\"\nheaders = {\n 'Authorization': f'Bearer {ACCESS_TOKEN}',\n 'Content-Type': 'application/json'\n}\ndata = '''{\n \"busy_delay_time\": 10,\n \"call_timeout\": 30,\n \"no_answer_delay_time\": 10,\n \"number\": \"89215650644\",\n \"reject_delay_time\": 10,\n \"status\": \"available\",\n \"wrap_up_time\": 0\n}'''\nresponse = requests.post(url, headers=headers, data=data)\nprint(response.text)"}]}]},"id":"837b5db2-bac4-4c84-ab1f-14027ae64956","label":"In Python3","type":"tab"}] |
System response:
Code Block | ||
---|---|---|
| ||
{
"busy_delay_time": 10,
"call_timeout": 30,
"extra_params": "string",
"id": 9,
"name": "string",
"no_answer_delay_time": 10,
"number": "89876543210",
"reject_delay_time": 10,
"status": "available",
"wrap_up_time": 0
} |
5. Add the local agent to the queue with the first position and the first level:
Tabs |
---|
[{"content":{"version":1,"type":"doc","content":[{"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"default"},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Method","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Resource","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data","marks":[{"type":"strong"}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"POST"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"/extension/208/queue/agents/local/"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"{"},{"type":"hardBreak"},{"type":"text","text":"\"agent_id\": 1,"},{"type":"hardBreak"},{"type":"text","text":"\"level\": 1,"},{"type":"hardBreak"},{"type":"text","text":"\"position\": 1"},{"type":"hardBreak"},{"type":"text","text":"}"}]}]}]}]},{"type":"paragraph","content":[]}]},"id":"53d68781-aef2-4d98-95a8-9e4233bc30a8","label":"Interactive API Browser","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"shell"},"content":[{"type":"text","text":"curl \\\n-H \"Authorization: Bearer ${access_token}\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n \"agent_id\": 1,\n \"level\": 1,\n \"position\": 1\n}' \\\n-X POST ${url}/extension/208/queue/agents/local/"}]}]},"id":"227f2a19-2af7-4275-ab1f-cd5bec4e2fcc","label":"cURL Program","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"python"},"content":[{"type":"text","text":"#!/usr/bin/python\n\nimport requests\n\nurl = f\"{URL}/extension/208/queue/agents/local/\"\nheaders = {\n 'Authorization': f'Bearer {ACCESS_TOKEN}',\n 'Content-Type': 'application/json'\n}\ndata = '''{\n \"agent_id\": 1,\n \"level\": 1,\n \"position\": 1\n}'''\nresponse = requests.post(url, headers=headers, data=data)\nprint(response.text)"}]}]},"id":"5bf3e3cf-72ec-4130-907e-428b2f5c1e12","label":"In Python3","type":"tab"}] |
System response:
Code Block | ||
---|---|---|
| ||
{
"position": 1,
"agent_id": 1,
"level": 1
} |
6. Add an external agent to the queue with the first position and the second level:
Tabs |
---|
[{"content":{"version":1,"type":"doc","content":[{"type":"table","attrs":{"isNumberColumnEnabled":false,"layout":"default"},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Method","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Resource","marks":[{"type":"strong"}]}]}]},{"type":"tableHeader","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data","marks":[{"type":"strong"}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"POST"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"/extension/208/queue/agents/remote/"}]}]},{"type":"tableCell","attrs":{},"content":[{"type":"paragraph","content":[{"type":"text","text":"{"},{"type":"hardBreak"},{"type":"text","text":"\"agent_id\": 9,"},{"type":"hardBreak"},{"type":"text","text":"\"level\": 2,"},{"type":"hardBreak"},{"type":"text","text":"\"position\": 1"},{"type":"hardBreak"},{"type":"text","text":"}"}]}]}]}]},{"type":"paragraph","content":[]}]},"id":"73238ffa-5c93-4978-82ef-bd3bd17b5067","label":"Interactive API Browser","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"shell"},"content":[{"type":"text","text":"curl \\\n-H \"Authorization: Bearer ${access_token}\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n \"agent_id\": 9,\n \"level\": 2,\n \"position\": 1\n}' \\\n-X POST ${url}/extension/208/queue/agents/remote/"}]}]},"id":"3ff87e9f-083b-482f-a6c7-e8e13d4a35b2","label":"cURL Program","type":"tab"},{"content":{"version":1,"type":"doc","content":[{"type":"codeBlock","attrs":{"language":"python"},"content":[{"type":"text","text":"#!/usr/bin/python\n\nimport requests\n\nurl = f\"{URL}/extension/208/queue/agents/remote/\"\nheaders = {\n 'Authorization': f'Bearer {ACCESS_TOKEN}',\n 'Content-Type': 'application/json'\n}\ndata = '''{\n \"agent_id\": 9,\n \"level\": 2,\n \"position\": 1\n}'''\nresponse = requests.post(url, headers=headers, data=data)\nprint(response.text)"}]}]},"id":"8c47aca6-b0e2-4698-9525-3827a4982490","label":"In Python3","type":"tab"}] |
System response:
Code Block | ||
---|---|---|
| ||
{ "position": 1, "agent_id": 9, "level": 2 } |
Ресурсы раздела “Внутренний номер”
Конфигурация очередиResources of the "Extension number" section
Queue configuration
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PUT /extension/{extension_id}/queue/ Обновить параметры очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
agent_announce_sound | long |
no | |
agent_hangup_action | string |
no | |
agent_hangup_transfer_dst | string |
no | |
agent_report_wait_time | boolean |
no | |
announce_frequency | long |
no | |
announce_sound | long |
no | |
append_to_cid_name_on_transfer | string |
no | |
exit_key | string |
no | |
exit_transfer_dst | string |
no | |
exit_with_no_av_agents | boolean |
no | |
max_wait_time | long |
no | |
max_wait_time_with_no_agent | long |
no | |
no_agent_timeout_transfer_dst | string |
no | |
position_announce_frequency | long |
no | |
quality_rate_finish_sound | long |
no | |
quality_rate_max | long |
no | |
quality_rate_sound | long |
no | |
record_enabled | boolean |
no | |
skip_busy_agents | boolean |
no | |
sound | long |
no | |
sound_type | string |
no | |
start_sound | long |
no | |
strategy | string |
no | |
tier_rule_wait_multiply_level | boolean |
no | |
tier_rule_wait_second | long |
no | |
tier_rules_apply | boolean |
no | |
timeout_transfer_dst | string |
no | |
try_same_agent_time | long |
no | |
vm_attach_file | boolean |
no | |
vm_enabled | boolean |
no | |
vm_greeting | long |
no | |
vm_mailto | string |
no |
Поля ответаResponse fields
Name |
---|
Type | |
---|---|
agent_announce_sound | long |
agent_hangup_action | string |
agent_hangup_transfer_dst | string |
agent_report_wait_time | boolean |
announce_frequency | long |
announce_sound | long |
append_to_cid_name_on_transfer | string |
exit_key | string |
exit_transfer_dst | string |
exit_with_no_av_agents | boolean |
max_wait_time | long |
max_wait_time_with_no_agent | long |
no_agent_timeout_transfer_dst | string |
position_announce_frequency | long |
quality_rate_finish_sound | long |
quality_rate_max | long |
quality_rate_sound | long |
record_enabled | boolean |
skip_busy_agents | boolean |
sound | long |
sound_type | string |
start_sound | long |
strategy | string |
tier_rule_wait_multiply_level | boolean |
tier_rule_wait_second | long |
tier_rules_apply | boolean |
timeout_transfer_dst | string |
try_same_agent_time | long |
vm_attach_file | boolean |
vm_enabled | boolean |
vm_greeting | long |
vm_mailto | string |
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET /extension/{extension_id}/queue/ Получить параметры очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
Поля ответаResponse fields
Name |
---|
Type | |
---|---|
agent_announce_sound | long |
agent_hangup_action | string |
agent_hangup_transfer_dst | string |
agent_report_wait_time | boolean |
announce_frequency | long |
announce_sound | long |
append_to_cid_name_on_transfer | string |
exit_key | string |
exit_transfer_dst | string |
exit_with_no_av_agents | boolean |
max_wait_time | long |
max_wait_time_with_no_agent | long |
no_agent_timeout_transfer_dst | string |
position_announce_frequency | long |
quality_rate_finish_sound | long |
quality_rate_max | long |
quality_rate_sound | long |
record_enabled | boolean |
skip_busy_agents | boolean |
sound | long |
sound_type | string |
start_sound | long |
strategy | string |
tier_rule_wait_multiply_level | boolean |
tier_rule_wait_second | long |
tier_rules_apply | boolean |
timeout_transfer_dst | string |
try_same_agent_time | long |
vm_attach_file | boolean |
vm_enabled | boolean |
vm_greeting | long |
vm_mailto |
boolean
vm_greeting
long
vm_mailto
string |
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
GET /extension/{extension_id}/queue/status/ Get a status of the queue URL Parameters
Response fiends
|
Get a list of callers in the queue
Expand | ||||
---|---|---|---|---|
| ||||
Получить статус очереди Параметры URL Parameters Имя
Поля ответа | ||||
Имя | Тип | |||
answered_members | long | |||
trying_members | long | |||
waiting_members | long |
Response field
|
Configuration of the local agent queue
Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
POST /extension/{extension_id}/queue/agents/local/ Добавить локального агента в очередь Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
agent_id | long |
yes | |
level | long |
no | |
position | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
GET /extension/{extension_id}/queue/agents/local/ Получить список локальных агентов очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
PUT /extension/{extension_id}/queue/agents/local/{agent_id} Обновить конфигурацию локального агента в очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
agent_id | integer |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
position | long |
no | |
level | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
GET /extension/{extension_id}/queue/agents/local/{agent_id} Получить конфигурацию локального агента в очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
agent_id | integer |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
DELETE /extension/{extension_id}/queue/agents/local/{agent_id} Удалить локального агента из очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
agent_id | integer |
Конфигурация внешнего агента в очередиConfiguration of the remote agent in the queue
Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
POST /extension/{extension_id}/queue/agents/remote/ Добавить внешнего агента в очередь Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
agent_id | long |
yes | |
level | long |
no | |
position | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
GET /extension/{extension_id}/queue/agents/remote/ Получить список внешних агентов в очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
PUT /extension/{extension_id}/queue/agents/remote/{agent_id} Обновить конфигурацию внешнего агента в очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
agent_id | integer |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
position | long |
no | |
level | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
GET /extension/{extension_id}/queue/agents/remote/{agent_id} Получить конфигурацию внешнего агента в очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
agent_id | integer |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
agent_id | long |
level | long |
position | long |
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
DELETE /extension/{extension_id}/queue/agents/remote/{agent_id} Удалить внешнего агента из очереди Параметры URL | Имя | Тип
Name | Type |
---|---|
extension_id | string |
agent_id | integer |
Ресурсы раздела "Клиент"
Локальные агентыResources of the "Client" section
Local agents
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
POST /client/{client_id}/agent/local/ Добавить локального агента клиента Параметры URL | Имя | Тип
Name | Type |
---|---|
client_id | string |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
busy_delay_time | long |
no | |
call_timeout | long |
no | |
extension_id | long |
yes | |
extra_params | string |
no | |
name | string |
yes | |
no_answer_delay_time | long |
no | |
reject_delay_time | long |
no | |
status | string |
no | |
wrap_up_time | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extension_id | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||
GET /client/{client_id}/agent/local/ Получить список локальных агентов клиента Параметры URL | Имя | Тип
Name | Type |
---|---|
client_id | string |
Параметры запросаRequest parameters
Name |
---|
Type | |
---|---|
extension_id | array [integer] |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extension_id | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PUT /client/{client_id}/agent/local/{agent_id} Обновить локального агента Параметры URL | Имя | Тип
Name | Type |
---|---|
agent_id | integer |
client_id | string |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
busy_delay_time | long |
no | |
call_timeout | long |
no | |
extra_params | string |
no | |
name | string |
yes | |
no_answer_delay_time | long |
no | |
reject_delay_time | long |
no | |
status | string |
no | |
wrap_up_time | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extension_id | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
GET /client/{client_id}/agent/local/{agent_id} Получить локального агента Параметры URL | Имя | Тип
Name | Type |
---|---|
agent_id | integer |
client_id | string |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extension_id | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
DELETE /client/{client_id}/agent/local/{agent_id} Удалить локального агента. Если параметр Delete the local agent. If the parameter remove_from_queues установлен в false, то при нахождении удаляемого агента хотя бы в одной очереди будет возвращена ошибка. Если параметр установлен в true (по умолчанию), то агент удалится также и из очередей. Параметры URL | Имя | Тип
Name | Type |
---|---|
agent_id | integer |
client_id | string |
Параметры запросаRequest parameters
Name |
---|
Type | |
---|---|
remove_from_queues | boolean |
Внешние агентыExternal agents
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
POST /client/{client_id}/agent/remote/ Добавить внешнего агента Параметры URL | Имя | Тип
Name | Type |
---|---|
client_id | string |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
busy_delay_time | long |
no | |
call_timeout | long |
no | |
extra_params | string |
no | |
name | string |
yes | |
no_answer_delay_time | long |
no | |
number | string |
yes | |
reject_delay_time | long |
no | |
status | string |
no | |
wrap_up_time | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
number | string |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
GET /client/{client_id}/agent/remote/ Получить список внешних агентов клиента Параметры URL | Имя | Тип
Name | Type |
---|---|
client_id | string |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
number | string |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PUT /client/{client_id}/agent/remote/{agent_id} Обновить внешнего агента Параметры URL | Имя | Тип
Name | Type |
---|---|
agent_id | integer |
client_id | string |
Параметры JSON Parameters
Name |
---|
Type |
---|
Mandatory | |
---|---|
busy_delay_time | long |
no | |
call_timeout | long |
no | |
extra_params | string |
no | |
name | string |
no | |
no_answer_delay_time | long |
no | |
number | string |
no | |
reject_delay_time | long |
no | |
status | string |
no | |
wrap_up_time | long |
no |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
number | string |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
GET /client/{client_id}/agent/remote/{agent_id} Получить внешнего агента Параметры URL | Имя | Тип
Name | Type |
---|---|
agent_id | integer |
client_id | string |
Поля ответаResponse field
Name |
---|
Type | |
---|---|
busy_delay_time | long |
call_timeout | long |
extra_params | string |
id | long |
name | string |
no_answer_delay_time | long |
number | string |
reject_delay_time | long |
status | object |
wrap_up_time | long |
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
DELETE /client/{client_id}/agent/remote/{agent_id} Удалить внешнего агента. Если параметр Remove the external agent. If the parameter remove_from_queues установлен в false, то при нахождении удаляемого агента хотя бы в одной очереди будет возвращена ошибка. Если параметр установлен в true (по умолчанию), то агент удалится также и из очередей.Параметры URLqueues is set to false, then an error will be returned if the agent to be removed is in at least one queue. If the parameter is set to true (by default), then the agent will be removed from the queues as well. URL Parameters
Параметры запросаRequest parameters
|