RegisterDevice
Registers a SIP device to a specified agent under a specified instance. The SIP device can be a SIP phone or a SIP softphone.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| UserId |
string |
No |
The agent ID. |
agent@ccc-test |
| DeviceId |
string |
Yes |
The device ID. You can specify a custom string value for this parameter. |
test-device |
| Password |
string |
Yes |
The device password. This password is used for authentication when the SIP device initiates a registration signal. 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. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
| Params |
array |
The list of error parameters. |
["ParameterName"] |
|
string |
The response parameters. |
None |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"Params": [
"无"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s must not be blank. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.