查询 SIP 中继运营商

查询支持的 SIP 中继的运营商。

请求 URL

GET {base_url}/{api_path}/trunk/itsp_list?access_token={access_token}

请求参数

无请求参数。可直接发送请求 URL 查询 SIP 运营商列表。

响应参数

1.
参数 类型 说明
errcode Integer 返回错误码。
  • 0:请求成功。
  • 非零值:请求失败。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息
errmsg String 返回信息。
  • SUCCESS:请求成功。
  • FAILURE:请求失败。
data Array<ITSP_Info> SIP 运营商信息。
total_number Integer SIP 运营商总数量。
ITSP_Info
2.
参数 类型 说明
id Integer SIP 运营商的唯一 ID。
country String SIP 运营商所在的国家。
name String SIP 运营商名称。

示例

请求示例

GET /openapi/v1.0/trunk/itsp_list?access_token=jXZawQilY8ezV9eGLX3J1TYb4LiknadJ HTTP/1.1
Host: 192.168.5.150:8088

响应示例

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
}