Query SIP Trunk Settings
Query detailed settings of a SIP trunk, multiple SIP trunks, or all SIP trunks.
Request URL
{base_url}/{api_path}/trunk/query_siptrunk?token={token}
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
id | Yes | Integer | The unique ID of a SIP trunk. Valid values:
|
Response parameters
Parameter | Type | Description |
---|---|---|
status | String | Request result.
|
trunks | Array <TrunkInfo> | Trunk information. |
- TrunkInfo
- Yeastar S-Series VoIP PBX supports three types of SIP trunk: Register Trunk, Peer Trunk, and Account Trunk.
Examples
Request example
Query detailed settings of the trunk with id 15.
POST /api/v2.0.0/trunk/query_siptrunk?token=277ac400357b509b4a587ff2157f7ad5 Content-Type:application/json; charset=utf-8 Host: 192.168.5.150 { "id": "15" }
Response example
HTTP/1.1 200 OK Server: Boa/0.94.14rc21 Accept-Ranges: bytes Connection: close Content-Type: application/json Access-control-allow-origin: * Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE { "status": "Success", "trunks": [ { "id": "15", "trunkname": "test", "trunktype": "peer", "host": "192.168.6.36", "port": "5060", "domain": "192.168.6.36", "extensionsdod": "", "extensionsgroupdod": "5503301-yeastar-sales,5503302-yealink-support," } ] }