參數 | 說明 | 是否必填 | 類型 |
---|---|---|---|
current | 當前頁碼,1-N | 是 | Integer |
size | 每頁顯示數,1-100 | 是 | Integer |
params | 分頁參數 | 是 | JSONObject |
type | 中繼類型,1-呼出,2呼入 | 否 | Integer |
sipTrunkName | 中繼名稱,模糊查詢 | 否 | String |
Request URL:
https://api.laaffic.com/v3/cc/sipTrunk/query
Request Method:
POST
Request Headers:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
Request Body:
{
"current":1,
"size":15,
"params":{
"type": 1,
"sipTrunkName":"12"
}
}
參數 | 說明 | 類型 |
---|---|---|
status | 狀態碼,0成功,其他失敗參見響應狀態碼說明 | String |
reason | 失敗原因說明 | String |
data | 對象集合 | JSONArray |
total | 總記錄條數 | Integer |
size | 每頁顯示數 | Integer |
current | 當前頁碼 | Integer |
pages | 總頁碼 | Integer |
records | 數據集合 | JSONArray |
keyId | 主鍵id | Integer |
sipGatewayIp | sip網關ip | String |
sipWhiteIp | sip白名單ip | String |
type | 中繼類型,1-呼出,2呼入 | Integer |
state | 狀態: 0禁用,1啟用 | Integer |
sipTrunkName | 中繼名稱 | String |
sipPrefix | 中繼首碼 | String |
ccIp | 呼叫中心Ip | String |
sipAccount | sip註冊帳號 | String |
sipPassword | sip註冊密碼 | String |
sipTrunkState | 網關狀態 | Boolean |
createTime | 創建時間 | DateTime |
updateTime | 修改時間 | DateTime |
groupList | JSONObject | |
voiceGroupId | 綁定坐席組id | Long |
groupName | 綁定坐席組名稱 | String |
number | 綁定坐席組後的電話 | String |
{
"status": 0,
"reason": "success",
"data": {
"total": 1,
"size": 50,
"current": 1,
"searchCount": true,
"pages": 1,
"records": [
{
"keyId": 5000028,
"sipGatewayIp": "12.325.353.2",
"sipWhiteIp": null,
"type": 1,
"state": 1,
"sipTrunkName": "22232",
"sipPrefix": null,
"ccIp": "0000.000.0.00",
"createTime": "2025-01-10 11:31:21",
"updateTime": "2025-01-10 11:31:21",
"groupList": [
{
"groupId": 1000026,
"groupName": "前端測試話機1",
"number": null,
}
],
"sipAccount": null,
"sipPassword": null,
"sipTrunkState": false
}
]
}
}
status | 狀態說明 |
---|---|
0 | 成功 |
-1 | 帳號認證異常 |
-2 | ip限制 |
-16 | 時間戳過期 |
-18 | 系統異常 |
-20 | 數據已存在 |
-22 | 參數異常 |
-23 | 數據上限 |
點擊此處開啟人工服務