编辑中继

POST
https://api.itniotech.com/v3/cc/sipTrunk/update
编辑中继。
 
请求参数
参数 说明 是否必填 类型
keyId 主键Id Integer
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/update
Request Method:
    POST
Request Headers:
    Content-Type: application/json;charset=UTF-8
    Sign: 05d7a50893e22a5c4bb3216ae3396c7c
    Timestamp: 1630468800
    Api-Key: bDqJFiq9
Request Body:
{
    "keyId":1,
    "groupList": [{
        "voiceGroupId": 1000026
    }],
    "sipTrunkName": "22232",
    "sipGatewayIp": "12.325.353.2",
    "sipTrunkState": false
}
 
响应参数
参数 说明 类型
status 状态码,0成功,其他失败参见响应状态码说明 String
reason 失败原因说明 String
data 该方法返回为空 String
 
响应示例
{
    "status":"0",
    "reason":"success",
    "data":null
}
 
响应状态码
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字符
-56 中继主键ID不能为空
-57 坐席组下必须绑定号码
-58 坐席组下绑定号码长度50字符以内
-59 绑定的号码已存在呼入SIP中继,请检查是否已重复绑定;如若没有请联系商务处理
-60 绑定sip白名单ip重复
-61 坐席组绑定号码未找到国家方向