API : SBC Server Create
Introduction
This request will create an SBC server.
Request
| URL | https://api.telecomx.dk/sbc/server |
| Method | GET |
| Access level | ADMIN. |
| Body | _id | String | IP address of the SBC server. |
| hostname | String | Hostname of the SBC server. |
| serviceMode | Boolean | True if the SBC server is in service mode and does not accept new calls to handle. |
Query examples
{
_id: '2.1.1.3',
hostname: 'sbc03.telecomx.dk',
serviceMode: false
}
Response
The response is an SBC server object.
| SBC Server object (JSON) |
| _id | String | IP address of the SBC server. |
| hostname | String | Hostname of the SBC server. |
| serviceMode | Boolean | True if the SBC server is in service mode and does not accept new calls to handle. |
Response example
{
_id: '2.1.1.3',
hostname: 'sbc03.telecomx.dk',
serviceMode: false
}
Errors
| Error code | Message | Description |
| 422 | _id | Id is not a valid IP address |
| 422 | hostname | Hostname is not valid - it could not be resolved |
| 409 | hostname | Hostname doe snot resolve to the specified IP address |
| 409 | _id | A server with the same IP address already exists |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |