Play a Recording to an Extension
Play a recording to a specified extension. When the extension receives an incoming call, the user can answer it to listen to the recording.
Request URL
GET {base_url}/{api_path}/recording/playtoextension?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | Integer | The unique ID of a call recording. Note: You can query recording's ID
using Search Specific Recording.
|
| play_to_extension | Yes | String | The extension number to which the recording will be played. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
Examples
Play a recording (id: 2265) to extension 1001.
Request example
GET /openapi/v1.0/recording/playtoextension?access_token=KtWbR3neEeqvZvfseri8HgeQRNfkE7fK&id=2265&play_to_extension=1001 HTTP/1.1
Host: 192.168.5.150:8088
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}