Dealer
This resource is designed to create and manage dealers of the system. Each PBX client belongs to a dealer who defines general settings for all his clients, such as routing rules, various limits, dialing rules, preferred media servers, and others.
Resource fields description
Name | Type | Description | Required | Default value |
---|---|---|---|---|
|
| Dealer name | Yes | Â |
|
| Unique dealer id. Read only. | - | - |
|
| Dealer creation date in the format:Â YYYY-MM-DDÂ HH:MM:SS. Read only. | - | - |
|
| Enable (value yes) or disable (value no) sbc mode for dealer clients. If SBC mode is enabled, media for client extensions will go through the same address as SIP messages. SBC mode can be used when the client's firewall only allows connection to one address. | No | no |
|
| The limit on the number of created clients per day. If null, there is no limit. Otherwise, if at the time of the API request to create a client with this dealer, the number of clients specified in the parameter has been created over the past day, the API request will return an error. | No | null |
|
| Identifier of the list of routing rules for outgoing calls of the dealer's clients. If null, the default routing list will be used. Can be overridden by a specific client parameter. | No | null |
|
| Identifier of the list of preferred media servers of the dealer's clients. If the identifier is set, then the exchange of media data of the clients of this server will occur through media servers from the specified list when they are available. If set to null, the default list of media servers will be used. This parameter can be useful in the sending media data of the dealer's clients through the media servers that are closest to them geographically. | No | null |
|
| The limit on the number of simultaneous client calls. If null, there is no limit. Can be overridden by a limit of a specific client. | No | null |
|
| The limit on the number of client dial rules. If null, the global limit is used. | No | null |
|
| Dealer type, information field. The value of F is an individual, the value of J is a legal entity. | No | F |
|
| Dealer contact persons, information field. | No | null |
|
| Dealer contact numbers, information field. | No | null |
|
| Dealer contact email addresses, information field. | No | null |
|
| Dealer's legal address, information field. | No | null |
|
| Dealer's actual address, information field. | No | null |
Â
Allowed dealer domains
Each dealer can create clients only in certain domains. The list of dealer allowed domains is configured by the "Dealer Allowed Domains" resource, which contains a list of domain identifiers in which the dealer can create clients.
Description of the "Allowed Dealer Domains" resource fields
Name | Type | Description | Required | Default value |
---|---|---|---|---|
|
| List of identifiers (id) of domains in which the dealer can create clients. The list may be empty. The domain identifier (id) cannot be removed from the list if the dealer already has clients in this domain. | Yes | Â |
Resources of the "Admin" section
POST /admin/dealer/
Create a new dealer
JSON parameters
Response fields
GET /admin/dealer/
Get a list of the dealers
Request parameters
Name | Type |
---|---|
|
|
|
|
Response fields
PUT /admin/dealer/{dealer_id}
Update a dealer
URL parameters
Name | Type |
---|---|
|
|
JSON parameters
Response fields
GET /admin/dealer/{dealer_id}
Get a dealer by id
URL parameters
Name | Type |
---|---|
|
|
Response fields
DELETE /admin/dealer/{dealer_id}
Delete a dealer
URL parameters
Name | Type |
---|---|
|
|
PUT /admin/dealer/{dealer_id}/allowed_domains/
Update a dealer allowed domains list
URL parameters
Name | Type |
---|---|
|
|
JSON parameters
Resource fields "Allowed dealer domains"
Response fields
Resource fields "Allowed dealer domains"
GET /admin/dealer/{dealer_id}/allowed_domains/
Get an allowed dealer domains list
URL parameters
Name | Type |
---|---|
|
|
Response fields
Resource fields "Allowed dealer domains"
Â