(30039) Call End Timeline Notification

When the Timeline feature is enabled, the PBX sends an event report to the third-party application when a call ends.

Report parameters

Parameter Type Description
type Integer Event ID.
sn String PBX's serial number.
msg Object <Detailed_Info> The detailed information.
Detailed_Info
Parameter Type Description
uid String The unique ID of the call.
cdr_id String The unique ID of the specific call leg.
leg Integer The sequence number of the call leg.
transaction_id String The ID of the call leg.
call_from String The caller number.
call_to String The callee number.
call_type String The call type.
  • Internal: Internal call.
  • Inbound: Inbound call.
  • Outbound: Outbound call.
status String The call status.
  • ANSWERED: The callee answered the call.
  • NO ANSWER: The callee did not answer the call.
  • BUSY: The callee was busy.
  • ABANDONED: The caller hung up before the call was answered.
  • FAILED: The call failed.
  • VOICEMAIL: The callee did not answer the call, and a new voicemail was left.
time_start String The start time of the call leg.
ring_duration Integer The time between the call started to ring and the call answered.
talk_duration Integer The time between the call answered and the call ended.
hold_duration Integer The total amount of time that the call was held.
call_duration Integer The time between the call started and the call ended.
src_trunk String The name of the source trunk.
dst_trunk String The name of the destination trunk.
did_number String The DID number that the caller dialed.
dod_number String The DOD number displayed for the outbound call.
event_list Array <Timeline_Event> A list of timeline events, sorted by event time in ascending order.
Timeline_Event
Parameter Type Description
event_id String The ID of the event.
event_name String The name of the event.
event_type String The type of the event.
event_ts String The time when the event occurred.
event_content String The detailed information about the event.

Report example

{
    "type": 30039,
    "sn": "3651D2032748",
    "msg": {
        "uid": "20261016150409C6FF1",
        "cdr_id": "20261016150409-BC686",
        "transaction_id": "31001",
        "leg": 1,
        "time_start": "2026/10/16 15:04:09",
        "call_type": "Internal",
        "call_from": "5555",
        "call_to": "3021",
        "src_trunk": "",
        "dst_trunk": "",
        "status": "ANSWERED",
        "call_duration": 18,
        "ring_duration": 6,
        "talk_duration": 12,
        "hold_duration": 0,
        "did_number": "",
        "dod_number": "",
        "event_list": [
            {
                "event_id": "6850E1B1-22C000BF",
                "event_type": "basic",
                "event_name": "call_to",
                "event_ts": "2026/10/16 15:04:10",
                "event_content": {
                    "from": "5555",
                    "to": "3021",
                    "in": "web"
                }
            },
            {
                "event_id": "6850E1B1-22C009B1",
                "event_type": "dial",
                "event_name": "tried_contact",
                "event_ts": "2026/10/16 15:04:12",
                "event_content": {
                    "in": "desktop",
                    "to": "3021"
                }
            },
            {
                "event_id": "6850E1B1-22C011AF",
                "event_type": "dial",
                "event_name": "answered",
                "event_ts": "2026/10/16 15:04:15",
                "event_content": {
                    "device_remark": "LAPTOP-QOI5P2N4",
                    "to": "3021",
                    "in": "desktop",
                    "talk_duration": 12
                }
            },
            {
                "event_id": "6850E1B1-22C01BCB",
                "event_type": "operate",
                "event_name": "hangup",
                "event_ts": "2026/10/16 15:04:27",
                "event_content": {
                    "from": "3021",
                    "via_operate": "sip"
                }
            }
        ]
    }
}