Call Back

Through this interface, the PBX will dial two external numbers consecutively, and the two numbers could be connected with the PBX as the transit stop.

Operations

  • Dial the calling party's number first. The call is answered.
  • Then dial the called party's number. The call is answered.
  • The two parties are therefore connected.

Conditions

  • The calls will rely on an extension's outbound call permission.
  • There are at least two available trunks.
  • The two calls need to match the outbound route.

Endpoint

POST /api/v1.1.0/outbound/dial_outbound?token={token}

Request Parameters

Name Importance Type Description
caller Required String The number of the calling party (the outbound dial pattern should be matched), which will be dialed first.
outto Required String The number of the called party (the outbound dial pattern should be matched), which will be dialed secondly.
fromext Required Int Which extension's call permission will be applied.

Response Parameters

Name Type Description
callid String A unique identifier for the call.

Examples

Request Example
POST /api/v1.1.0/outbound/dial_outbound?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: api.yeastarcloud.com
{
    "caller": "118396210850",
    "outto": "98237374",
    "fromext": "1000"
}
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
    "status": "Success",
    "callid": "1495698843.215"
}