You can subscribe to call record messages (VoiceReportAiccs) using the MNS queue pattern. After a call ends, you can retrieve the call record information, such as the call type, start and end times, duration, and termination reason.
Return parameters
| Name | Type | Example | Description |
| call_id | String | 100001616500^10000187**** | The call ID. |
| originate_time | String | 2020-05-01 10:00:00 | The time when Alibaba Cloud Communications initiated the call to the carrier. |
| ring_time | String | 2020-05-01 10:00:03 | The time when the callee's phone starts ringing after an outbound call is initiated. Note If the callee's phone does not ring, this field is empty. |
| start_time | String | 2017-06-01 10:00:00 | The time when the callee answered the call. Note This field is empty if the call was not connected. |
| end_time | String | 2017-06-01 10:00:00 | The time when the call ended. |
| caller | String | 0571****1111 | The caller number. |
| callee | String | 137****1111 | The callee number. |
| duration | String | 10 | The call duration. The value is 0 if the call was not connected. |
| status_code | String | 200010 | The status code of the call result. For more information, see Call status codes. |
| early_media_code | String | 200002 | The status code for the early media result. This parameter is returned only if the early media feature is enabled. For more information, see Call status codes. |
| hangup_direction | String | User | The party that disconnected the call. Valid values:
|
| status_msg | String | Execution complete | The result description. |
| out_id | String | 123456 | The extended field that is passed back. This parameter returns the value that you specified for this field in the API call. For APIs related to the Intelligent Outbound Call SaaS Assistant, the `out_id` value is in the format `ALICOM_SMART_SAAS^111111^2222222`. In this format, `111111` is the batch task ID. |
| dtmf | String | 123456 | The DTMF keypress. |
| voice_type | String | voice | The type of call record. Valid values:
|
| dialog_id | String | 100001097**** | The script ID. This parameter is specific to the Intelligent Outbound Call SaaS Assistant. |
| toll_type | String | LOCAL | The call type. Valid values:
|
该文章对您有帮助吗?