POST /api/v0.0.1/inroute/query?token={token}&type={type}
名称 | 是否必需 | 类型 | 描述 |
name | 是 | String |
呼入路由的名称。
例如:“name”:“route1”
例如:“name”: “route1,route2”
|
名称 | 类型 | 描述 |
inroutes | Object | 对象参数。 |
id | Int | 呼入路由的标识码。 |
name | String | 呼入路由的名称。 |
did | String | DID 匹配模式。 |
caller_id | String | 来电匹配模式。 |
desttype | String |
目的地类型。
|
dest | String | 具体目的地。 |
请求示例
POST /api/v0.0.1/inroute/query?token=277ac400357b509b4a587ff2157f7ad5&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
"name": "all"
}
POST /api/v0.0.1/inroute/query?token=277ac400357b509b4a587ff2157f7ad5&type=xml HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<name>all</name>
</xml>
响应示例
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version="1.0" encoding="utf-8"?>
<xml>
<status>Success</status>
<inroutes>
<item id="0">
<id></id>
<name>test</name>
<did></did>
<caller_id></caller_id>
<desttype>extension</desttype>
<dest>102</dest>
</item>
</inroutes>
</xml>
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
"status": "Success",
"inroutes": [
{
"id": "",
"name": "test",
"did": "",
"caller_id": "",
"desttype": "extension",
"dest": "102"
}
]
}