...
Name | Type | Description | Required | Default value |
---|---|---|---|---|
|
| Trunk name | yes | |
|
| Trunk direction. The trunk can be incoming (value “in”), in which case incoming calls to DID can be received through the trunk, outgoing (value “out”), in which case outgoing calls can be routed through the trunk, and bidirectional (value “all”). | no | |
|
| The unique ID of the trunk. Read only. | - | - |
|
| Identifier of a group of trusted networks from which requests are allowed for this trunk. Applies to trunks with in and all direction | yes, if trunk direction is in or all | null |
|
| Address of the SIP server to which the call will be sent according to the routing rules. Applies to trunks with out and all directions. Specified as host:port. Host can be a domain name, ":port" is optional (5060 if not present). If it is necessary to use tcp protocol, then "host:port;tranport=tcp" | yes, if trunk direction is out or all | null |
|
| Trunk status for receiving incoming calls. If the parameter is set to blocked, then the system will return an error on an attempt to call the DID of this trunk. | no | blocked |
|
| Trunk status for receiving outgoing calls. If the parameter is set to blocked, then an attempt to make an external call through this trunk will fail. | no | blocked |
|
| Enable (“yes” value) or disable (“no” value) sbc mode for the trunk. If SBC mode is enabled, the media for calls going through the trunk will go through the same address as the SIP messages. | no | |
|
| The number of characters that will be removed from the beginning of the number when an outgoing call is sent through this trunk. | no | null |
|
| The prefix that will be added to the beginning of the number when sending an outgoing call through this trunk. | no | null |
|
| The username for authorization when sending an outgoing call through this trunk. | no | null |
|
| The user password for authorization when sending an outgoing call through this trunk. | no | null |
|
| The username in the “From” field when sending an outgoing call through this trunk. | no | null |
|
| The domain in the “From” field when sending an outgoing call through this trunk. | no | null |
|
| If the parameter is set to "yes", then when sending an outgoing call through the trunk to an external SIP server, the Ringme-user header will be added to the INVITE packet, which will contain the full name of the extension from which the call is made, in the format with a domain prefix: domain_prefix*client_prefix*extension_number | no | yes |
|
| A list of addresses in the form ip[:port] to check if calls from them can be used to call to any DID or extension. Addresses are unique within the entire PBX. | no | [] |
|
| If the call is from "super_trunk_ip", to a global extension (xxxx*xxx*xxx), then it is allowed if the parameter is set to "yes". | no | no |
|
| If the call is from "super_trunk_ip", to a DID number, then it is allowed if the parameter value is "yes". | no | no |
|
| The maximum number of simultaneous channels used by the trunk. Incoming/outgoing are summarized. With a value of "0" there is no limit. | no | 0 |
|
| On an incoming call from the trunk, converts the A-number according to the corresponding dialing rules | no | null |
|
| On a call going to the trunk, converts the A-number (“From” field) according to the corresponding dialing rules | no | null |
|
| When the " For example, "address" = srvtest.ucom4b.com $ host -t srv _sip._udp.srvtest.ucom4b.com 2. For srvtest.ucom4b.com $ host -t srv _sip._udp.srvtest.ucom4b.com 3. There is more than one A record for srvtest.ucom4b.com but no SRV records: calls will leave and reserve on A records randomly
| no | false |
...
Resources of the "Admin" section
POST /admin/trunk/
Create a trunk
...
JSON parameters
Поля ответа
Response fields
GET /admin/trunk/
Получить список транков
Параметры запроса
...
Имя
...
Get a trunk list
Request parameters
Name | Type |
---|---|
|
|
|
|
Поля ответа
...
Response fields
...
PUT /admin/trunk/{id
}
Обновить транк
Параметры URL
...
Имя
...
Update a trunk
URL Parameters
Name | Type |
---|---|
|
|
...
JSON parameters
Поля ответа
Response fields
GET /admin/trunk/{id
}
Получить транк по идентификатору
Параметры URL
...
Имя
...
Get a trunk by id
URL Parameters
Name | Type |
---|---|
|
|
Поля ответа
...
Response fields
DELETE /admin/trunk/{id
}
Удалить транкDelete a trunk
...
URL Parameters
ИмяName | ТипType |
---|---|
|
|