LlmSmartCallReport - Call record message

Updated at:

You can subscribe to the LlmSmartCallReport call record message from the communication engine using Message Service (MNS). After a call ends, the communication engine sends a message containing the call record information.

Response parameters

Parameter

Type

Description

call_id

String

The unique call ID.

start_time

String

The time the call was connected (when the callee answered). This field is empty if the call was not connected.

end_time

String

The time the call ended. This field is empty if the call was not connected.

duration

Integer

The call duration in seconds. The value is 0 if the call was not connected.

status_code

String

The call result status code. For more information, see Call Status Codes.

status_msg

String

The description of the call result.

out_id

String

A passthrough field that returns the custom value you provided in the API call.

caller

String

The caller number.

callee

String

The callee number.

hangup_direction

String

The party that hung up. Valid values:

  • User

  • Machine

toll_type

String

The call type. Valid values:

  • LOCAL: Local call.

  • PROVINCE: Provincial long-distance call.

  • DOMESTIC: Domestic long-distance call.

  • INTERNATIONAL: International long-distance call.

  • UNKNOWN: Unknown.

originate_time

String

The time the call was initiated (when the voice service sent the call request to the carrier).

ring_time

String

The time the callee's phone started ringing after the outbound call was initiated. This field is empty if the callee's phone did not ring.

smart_status_code

String

The smart call result status code. For more information, see Smart Status Codes.

task_id

String

The task ID. This parameter is returned only for task-based outbound calls.

task_batch_id

String

The task batch ID. This parameter is returned only for task-based outbound calls.

task_detail_id

String

The task detail ID. This parameter is returned only for task-based outbound calls.

failed_reason

String

The reason for the call failure. This parameter is returned only for task-based outbound calls.

call_times

Number

The number of call attempts.

Note
  • If the call connects on the first attempt, call_times is 1.

  • If the call connects after one or more retries, call_times equals the number of retries plus 1.

  • If the call fails to connect after multiple retries, call_times increments with each retry.

  • When a new task batch calls the same number, call_times is reset to 1.

conversation_record

String

The transcript of the conversation. Example:

[
  {
    "content": "Hello.",
    "role": "user"
  },
  {
    "content": "Hello, this is STO Express. Your heavy package from Pinduoduo, addressed to Shenghe Xing Building E, is about to be delivered. Please be ready to receive it.",
    "role": "assistant"
  },
  {
    "content": "The user you have dialed is currently unavailable.",
    "role": "user"
  },
  {
    "content": "Please try again later.",
    "role": "user"
  },
  {
    "content": "The subscriber you dialed cannot be connected.",
    "role": "user"
  }
]

transfer_time

String

The time the call was successfully transferred. Example: 2026-06-25 09:45:08