设备注册状态回调
回调说明
-
请求方法:POST
-
数据格式:JSON
-
请求地址:请在SDK管理后台上配置回调地址
-
传输协议:HTTP
回调参数
| 名称 | 类型 | 说明 |
|---|---|---|
| eventType | String | 回调事件 SIP_REG_STATE_CHANGED |
| time | Long | 通知时间戳,单位:秒 |
| signature | String | 签名 |
| details | Object | 详细内容 |
details 数据
| 名称 | 类型 | 说明 |
|---|---|---|
| DeviceNum | String | 设备编号 |
| DeviceName | String | 设备名称 |
| RegState | Integer | 注册状态 0:未注册 1: 注册 |
| DeviceType | Integer | 设备类型,0:SIP设备,1:国标设备 |
数据示例
{
"eventType": "SIP_REG_STATE_CHANGED",
"time": 1624356396,
"signature": "c8ac997a192f6ce3fc290d3a81b81c34",
"details": {
"DeviceNum": "44010200402000000123",
"DeviceName": "44010200402000000123",
"RegState": 0,
"DeviceType": 1
}
}
返回响应
返回 HTTP status code 为 2XX (例如 200)表示成功,其他响应都表示失败。