Make an Internal Call
Make an internal call between two extensions.
Endpoint
POST /api/v0.0.1/extension/dial_extension?token={token}&type={type}
Request Parameters
Name | Importance | Type | Description |
caller | Required | String | The caller extension. |
callee | Required | String | The called extension. |
autoanswer | Optional | String | Whether to auto answer the call or not. This parameter requires the SIP phone to support.
|
Examples
Request Example
Extension 101 calls extension 102.
POST /api/v0.0.1/extension/dial_extension?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“caller”: “101”,
“callee”: “102”,
“autoanswer”: “no”
}
POST /api/v0.0.1/extension/dial_extension?token=813b621cfe8eecf445a2ce1f4a079ffe&type=xml HTTP/1.1
Content-Type:application/xml; charset=utf-8
Host: 172.16.6.150
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<xml>
<caller>101</caller>
<callee>102</callee>
<autoanswer>no</autoanswer>
</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>