RegisterDevices
Registers one or more SIP devices to a specified agent under a specified instance. The SIP devices can be SIP phones or SIP softphones.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| UserIdListJson |
string |
No |
The list of agent IDs. The format is a JSON array character string, and each array element is an agent ID. |
["user-test@ccc-test"] |
| DeviceId |
string |
Yes |
The device ID. You can set this parameter to a custom string value. No special requirements apply. |
test-device |
| Password |
string |
Yes |
The device password. This password is used for authentication when the SIP device initiates registration signaling. Keep the password secure. |
password |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
BA03159C-E808-4FF1-B27E-A61B6E888D7F |
| Params |
array |
The list of error parameters. |
["ParameterName"] |
|
string |
The response parameter. |
None |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "BA03159C-E808-4FF1-B27E-A61B6E888D7F",
"Params": [
"无"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s may not be null or blank. | The parameter cannot be null or a string that contains whitespace characters. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.