参数 | 说明 | 是否必填 | 类型 |
---|---|---|---|
type | 中继类型,1-呼出,2呼入 | 是 | String |
sipTrunkName | 中继名称 | 是 | String |
sipPrefix | 中继前缀 | 否 | String |
groupList | 是 | JOSNArray | |
voiceGroupId | 绑定坐席组id | 是 | Long |
number | 绑定坐席组后的电话 | type=2 必填 | String |
sipGatewayIp | sip网关ip | type=1 必填 | String |
sipWhiteIp | sip白名单ip | type=2 必填 | String |
sipTrunkState | SIP注册:true,false | 是 | Boolean |
sipAccount | sip注册账号 | type=1 且sipTrunkState=true必填 | String |
sipPassword | sip注册密码 | type=1 且sipTrunkState=true必填 | String |
Request URL:
https://api.itniotech.com/v3/cc/sipTrunk/add
Request Method:
POST
Request Headers:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
Request Body:
{
"groupList": [{
"voiceGroupId": 1000026
}],
"type": 1,
"sipTrunkName": "22232",
"sipGatewayIp": "12.325.353.2",
"sipTrunkState": false
}
参数 | 说明 | 类型 |
---|---|---|
status | 状态码,0成功,其他失败参见响应状态码说明 | String |
reason | 失败原因说明 | String |
data | 该方法返回主键keyId | String |
{
"status":"0",
"reason":"success",
"data":1234
}
status | 状态说明 |
---|---|
0 | 成功 |
-1 | 账号认证异常 |
-2 | ip限制 |
-16 | 时间戳过期 |
-18 | 系统异常 |
-20 | 数据已存在 |
-22 | 参数异常 |
-23 | 数据上限 |
-44 | 请输入sip正确的中继类型 |
-45 | 请输入sip正确的中继名称 |
-47 | sip中继名称重复 |
-48 | 绑定坐席组不能为空 |
-49 | 绑定sip网关ip不能为空 |
-50 | 请输入正确格式sip网关ip,限制50字符 |
-51 | 绑定坐席组不能重复 |
-52 | 坐席组已被绑定 |
-53 | 绑定sip网关ip重复 |
-54 | 绑定sip白名单ip不能为空 |
-55 | 请输入正确格式sip白名单ip,限制50字符 |
-57 | 坐席组下必须绑定号码 |
-58 | 坐席组下绑定号码长度50字符以内 |
-59 | 绑定的号码已存在呼入SIP中继,请检查是否已重复绑定;如若没有请联系商务处理 |
-60 | 绑定sip白名单ip重复 |
-61 | 坐席组绑定号码未找到国家方向 |