Edit Recording Setting
Edit the recording settings, including recording prompts and recording targets.
Request URL
POST {base_url}/{api_path}/autorecord/update?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| enb_internal | No | Integer | Whether to record internal calls. Valid value:
|
| internal_prompt | No | String | The prompt that will be played when internal calls are being recorded. |
| outbound_prompt | No | String | The prompt that will be played when outbound calls are being recorded. |
| inbound_prompt | No | String | The prompt that will be played when inbound calls are being recorded. |
| enb_channel_separate | No | Integer | Whether to record the caller and callee on separate channels,
generating a stereo recording with left and right
channels. Valid value:
|
| record_file_format | No | String | The file format of the recording when stereo recording is
enabled. Valid value:
|
| enb_paging | No | Integer | Whether to record paging/intercom calls. Valid value:
|
| record_trunk_list | No | Array<Trunk_List> | Specify the trunks to be recorded. |
| record_ext_list | No | Array<Extension_List> | Specify the extensions to be recorded. |
| record_conference_list | No | Array<Conference_List> | Specify the conferences to be recorded. |
| record_queue_list | No | Array<Queue_List> | Specify the queues to be recorded. |
| record_ivr_list | No | Array<IVR_List> | Specify the IVRs to be recorded. |
- Trunk_List
-
Parameter Required Type Description id Yes Integer The unique ID of a trunk. type No String Trunk type. text No String Trunk name. enb_config No Integer Whether to play a beep tone at regular intervals during a call to indicate that the call is being recorded. Valid value:
0: Disabled1: Enabled
number_value No Integer The time interval (in seconds) at which the beep tone will be played.
- Extension_List
- Conference_List
-
Parameter Required Type Description id Yes Integer The unique ID of conference. text No String Conference name.
- Queue_List
- IVR_List
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
Request example
POST /openapi/v1.0/autorecord/update?access_token=iioRRjGzPoYGGJLjh7zkYfYxj3Xe4oqW HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"enb_internal": 1,
"internal_prompt": "internal_record.wav",
"inbound_prompt": "inbound_record.wav",
"outbound_prompt": "outbound_record.wav",
"enb_channel_separate": 1,
"record_file_format": "mp3",
"enb_paging": 1,
"record_trunk_list": [
{
"id": 5
}
],
"record_ext_list": [
{
"id": 18,
"type": "extension"
}
],
"record_conference_list": [
{
"id": 1
}
],
"record_ivr_list": [
{
"id": 5
}
],
"record_queue_list": [
{
"id": 9
}
]
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}