Add Inbound Route
Add and configure an inbound route.
Endpoint
POST /api/v0.0.1/inroute/add?token={token}&type={type}
Request Parameters
Name | Importance | Type | Description |
name | Required | String | Inbound route name. |
did | Optional | String | DID pattern. |
caller_id | Optional | String | Caller ID pattern. |
desttype | Required | String | Destination type:
|
dest | Required | String | The specific destination. |
Examples
Request Example
POST /api/v0.0.1/inroute/add?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“name”:”test2″,
“did”:””,
“caller_id”:””,
“desttype”:”extension”,
“dest”:”110″
}
POST /api/v0.0.1/inroute/add?token=813b621cfe8eecf445a2ce1f4a079ffe&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>test2</name>
<did></did>
<caller_id></caller_id>
<desttype>extension</desttype>
<dest>110</dest>
</xml>
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”
}
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>
</xml>