This resource is designed to create and manage domains and their aliases.
Because the PBX platform is multi-domain, the domain name is a meaningful part of the full extension name. The fully qualified extension name consists of the client prefix, extension number, and domain, and has the following format:
client_prefix*extension_number@domain
For example, 001*100@sip.ringme.ru
Thus, when authorizing a SIP message from extensions, the domain name is also checked from the SIP field “From”. Because some devices send a domain IP address instead of a domain name, it is possible to set up domain aliases. Additionally, there are tools for matching a request to the desired domain based on the IP address of the request source, regardless of what is in the domain part of the From field, as well as tools for matching the request to the desired domain based on the actual content of the domain part of the sent “From” field. The procedure for authorization of SIP messages from extensions is described below.
Authorization order for SIP messages from extensions
Searching for a header using information from the “From” field, matching the domain from the “From” field to the system domains.
If the domain was not found in the previous step, the IP address from the From field is matched against the system's domain aliases. If a match is found, then the actual extension domain is calculated.
If the domain was not found in the previous step, then the IP address of the request source is correlated with the Force Source of the system domains. If a match is found, then the actual extension domain is calculated.
If the domain was not found in the previous step, then the contents of the domain part of the “From” field correspond to the Force Destinations of the system domains. If a match is found, then the actual extension domain is calculated.
Authorization of the request in accordance with the settings of the extension.
Description of the Domain resource fields
Name | Type | Description | Required | Default value |
---|---|---|---|---|
|
| Domain name. Cannot be changed after the domain has been created. |
| |
|
| Unique domain prefix, must be a string of 5 digits. The domain prefix can be used for client calls from different domains to each other. For such call, dial a number in the format domain_prefix*client_prefix*extension_number |
| |
|
| Comment |
| null |
|
| Unique domain id. Read only. |
| - |
Description of the Domain Alias resource fields
Name | Type | Description | Required | Default value |
---|---|---|---|---|
|
| A domain alias, which can be in the “From” field in place of the domain. Can be a domain IP address. |
| |
|
| Comment |
| null |
|
| Unique domain alias id. Read only. |
| - |
Description of the domain Force Source resource fields
Name | Type | Description | Required | Default value |
---|---|---|---|---|
|
| IP address, requests from which will be considered related to this domain. |
| |
|
| Comment |
| null |
|
| Unique domain Force Source id. Read only. |
| - |
Description of the domain Force Destination resource fields
Name | Type | Description | Required | Default value |
---|---|---|---|---|
|
| The IP address in the “From” field that will map the request to this domain. |
| |
|
| Comment |
| null |
|
| Unique domain Force Destination id. Read only. |
| - |
Resources section "Admin"
POST /admin/domain/
Add domain
JSON params
Response fields
GET /admin/domain/
Get a list of domains
Request parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Response fields
PUT /admin/domain/{domain_id
}
Update domain
URL parameters
Name | Type |
---|---|
|
|
JSON parameters
Response fields
GET /admin/domain/{domain_id
}
Get a domain by its id
URL parameters
Name | Type |
---|---|
|
|
Response fields
DELETE /admin/domain/{domain_id
}
Delete domain
URL parameters
Name | Type |
---|---|
|
|
POST /admin/domain/{domain_id}/alias/
Add domain alias
URL parameters
Name | Type |
---|---|
|
|
JSON parameters
Response fields
GET /admin/domain/{domain_id}/alias/
Get a list of domain aliases
URL parameters
Name | Type |
---|---|
|
|
Response fields
PUT /admin/domain/{domain_id}/alias/{id
}
Update domain alias
URL parameters
Name | Type |
---|---|
|
|
|
|
JSON parameters
Response fields
GET /admin/domain/{domain_id}/alias/{id
}
Get domain alias by its id
URL parameters
Name | Type |
---|---|
|
|
|
|
Response fields
DELETE /admin/domain/{domain_id}/alias/{id
}
Delete domain alias
URL parameters
Name | Type |
---|---|
|
|
|
|
POST /admin/domain/{domain_id}/force_src/
Add domain force source
URL parameters
Name | Type |
---|---|
|
|
JSON parameters
Response fields
GET /admin/domain/{domain_id}/force_src/
Get list of domain force source
URL parameters
Name | Type |
---|---|
|
|
Response fields
PUT /admin/domain/{domain_id}/force_src/{id
}
Update domain force source
URL parameters
Name | Type |
---|---|
|
|
|
|
JSON parameters
Response fields
GET /admin/domain/{domain_id}/force_src/{id
}
Get domain force source
URL parameters
Name | Type |
---|---|
|
|
|
|
Response fields
DELETE /admin/domain/{domain_id}/force_src/{id
}
Delete domain force source
URL parameters
Name | Type |
---|---|
|
|
|
|
POST /admin/domain/{domain_id}/force_dst/
Add domain force desination
URL parameters
Name | Type |
---|---|
|
|
JSON parameters
Response fields
GET /admin/domain/{domain_id}/force_dst/
Get a list of domain force desination
URL parameters
Name | Type |
---|---|
|
|
Response fields
PUT /admin/domain/{domain_id}/force_dst/{id
}
Update domain force desination
URL parameters
Name | Type |
---|---|
|
|
|
|
JSON parameters
Response fields
GET /admin/domain/{domain_id}/force_dst/{id
}
Get domain force desination
URL parameters
Name | Type |
---|---|
|
|
|
|
Response fields
DELETE /admin/domain/{domain_id}/force_dst/{id
}
Delete domain force desination
URL parameters
Name | Type |
---|---|
|
|
|
|