uaCSTA - Accept a Call

Accept a call by uaCSTA control.

Prerequisites

Yeastar P-Series Software Edition supports uaCSTA connection with specific Yealink and Fanvil IP phones to realize uaCSTA control feature.

To perform the uaCSTA control operations for IP phones, make sure the following requirements are met.

Request URL

POST {base_url}/{api_path}/uacsta_call/accept?access_token={access_token}

Request parameters

Parameter Required Type Description
extension Yes String The extension that you want to control.
call_id Yes String The unique ID of each uaCSTA call.
Note: You can obtain the call ID of a uaCSTA call from (30020) uaCSTA Call event.
ip_address Yes String The IP address and SIP port of the IP phone where the extension is registered.

E.g: 192.168.5.2:5060.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Examples

Request example

Accept an incoming call of extension 2000 by uaCSTA control.
POST /openapi/v1.0/uacsta_call/accept??access_token=Ey7Ty0kL7bpOfPHgpJH2Qq4ozMvU4IEs HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: application/json
{
  "extension": "2000",
  "call_id": "32787",
  "ip_address": "192.168.5.2:5060"
}

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}