Edit SIP Trunk

POST
https://api.itniotech.com/v3/cc/sipTrunk/update
Edit sip trunk.
 
Request Parameters
Parameters Description Required Required
keyId Primary key id Yes Integer
sipTrunkName SIP trunk name Yes String
sipPrefix SIP trunk prefix No String
groupList Yes JOSNArray
voiceGroupId Bind Agent group ID Yes Long
number Phone number after binding agent group type=2 required String
sipGatewayIp Sip gateway ip type=1 required String
sipWhiteIp Sip whitelist ip type=2 required String
sipTrunkState SIP registration: true,false Yes Boolean
sipAccount Sip registration account type=1 and sipTrunkState=true required String
sipPassword Sip registration password type=1 and sipTrunkState=true required String
 
Request Sample
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
}
 
Response Parameters
Parameters Description Required
status status code,0 is successful. For other failures, please refer to the interface response code String
reason Failure reason description String
data This method returns empty String
 
Response Sample
{
	"status": "0",
	"reason": "success",
	"data": null
}
 
Response Status Code
status Description
0 Success
-1 Authentication error
-2 Authentication error
-16 Timestamp expires
-18 Port program unusual
-20 Data existing
-22 Parameter exception
-23 Data caps
-44 Please enter the correct trunk type for sip
-45 Please enter the correct trunk name for sip
-47 Duplicate sip trunk name
-48 The bound agent group cannot be empty
-49 Bind sip gateway ip cannot be empty
-50 Please enter the correct format of sip gateway ip, limited to 50 characters
-51 The bound agent group cannot be repeated
-52 The agent group has been bound
-53 Duplicate binding sip gateway ip
-54 Bind sip whitelist ip cannot be empty
-55 Please enter the correct format of sip whitelist ip, limited to 50 characters
-56 Relay primary key ID cannot be empty
-57 The number must be bound to the agent group
-58 The number bound under the agent group must be within 50 characters in length.
-59 The bound number already has an inbound SIP trunk. Please check whether it has been bound repeatedly; if not, please contact the business handler.
-60 Duplicate binding sip whitelist ip
-61 The number bound to the agent group cannot find the country direction.