LlmSmartCall - Call recording messages

更新时间:
复制 MD 格式

You can subscribe to LlmSmartCall call recording messages to receive recording information through HTTP batch push after a call ends.

Protocol description

Category

Description

Protocol

HTTP + JSON

Encoding

UTF-8

Request description

The request body is a JSON array.

  • Request sample

    [
      {
        "duration": 50,
        "start_time": "2025-01-15 10:26:58",
        "status_code": "200003",
        "end_time": "2025-01-15 10:27:54",
        "record_file": "http://alicom-fc-record-biz.cn-***********************",
        "out_id": "outid_******",
        "call_id": "1480******53^1348******53"
      }
    ]
  • Field descriptions

    Parameter Name

    Parameter type

    Description

    call_id

    String

    The call ID.

    start_time

    String

    The start time of the call. This field is empty if the call is not connected.

    end_time

    String

    The end time of the call. This field is empty if the call is not connected.

    duration

    String

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

    status_code

    String

    The status code of the call result. For more information, see Call status codes.

    record_file

    String

    The URL of the recording file. The URL is valid for 7 days.

    out_id

    String

    The extension field. This field returns the value that was passed in the API call.

Response description

  • Response sample:

    {
      "code": 0,
      "msg": "Received successfully"
    }
  • Field descriptions:

    Name

    Type

    Required

    Description

    Example

    code

    Number

    Yes

    The acknowledgement code.

    0

    msg

    String

    No

    The description.

    Received successfully

Note
  • The system validates only that the returned `code` is a number and does not validate the content. A push is considered successful if the HTTP status code is 200. The system retries the push if the HTTP status code is not 200 or if a timeout occurs.

  • If a system exception or consumption failure occurs, return a 5xx HTTP status code.

Retry push

If a push fails, the system retries it after 1, 5, and 10 minutes. After three failed attempts, the system stops retrying.