Query ITSP of SIP Trunks
Query the supported ITSP of SIP trunks.
Request URL
GET {base_url}/{api_path}/trunk/itsp_list?access_token={access_token}
Request parameters
No request parameters. Send the request URL directly to query the ITSP list.
Response parameters
Parameter | Type | Description |
---|---|---|
errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
errmsg | String | Returned message.
|
data | Array<ITSP_Info> | The detailed information of the ITSP. |
total_number | Integer | The total number of the ITSP. |
- ITSP_Info
-
Table 2. Parameter Type Description id Integer The ID of the ITSP. country String The country of the ITSP. name String The name of the ITSP.
Examples
Request example
GET /openapi/v1.0/trunk/itsp_list?access_token=jXZawQilY8ezV9eGLX3J1TYb4LiknadJ HTTP/1.1
Host: 192.168.5.150:8088
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"data": [
{
"id": 64,
"country": "United States",
"name": "Test"
},
{
"id": 65,
"country": "Germany",
"name": "Deutsche Telefon Standard"
},
{
"id": 66,
"country": "Canada",
"name": "United Cloud"
},
{
"id": 67,
"country": "Belgium",
"name": "Intellinet"
},
{
"id": 68,
"country": "Belgium",
"name": "Intellinet2"
},
{
"id": 69,
"country": "Canada",
"name": "HELIATEL Premium"
},
{
"id": 70,
"country": "Canada",
"name": "RingOffice"
},
{
"id": 71,
"country": "Canada",
"name": "VoIP.ms"
},
{
"id": 72,
"country": "Croatia",
"name": "SignumTEL"
},
{
"id": 73,
"country": "France",
"name": "TELECOM OBJECT"
}
],
"total_number": 10
}