(30012) Call End Details Notification

When a call is ended, the PBX will send the CDR to the third-party application.

Report parameters

Parameter Type Description
type Integer Event ID.
sn String PBX serial number.
msg Object<Call_Details> The detailed information of the call.
Call_Details
Parameter Type Description
call_id String The unique ID of each call.
time_start String The time when the call was made or received.
call_from String The caller's number.
call_to String The callee's number.
call_duration Integer The time between the call started and the call ended.
talk_duration Integer The time between the call answered and the call ended.
src_trunk_name String The call was received via which trunk.
dst_trunk_name String The call was sent out via which trunk.
pin_code String Trunk PIN code.
status String Call status.
  • ANSWERED: The callee answered the call.
  • NO ANSWER: The callee didn't answer the call.
  • BUSY: The callee number was in busy state.
  • VOICEMAIL: The callee didn't answer the call, and received a new voicemail.
type String Call type.
  • internal: Internal call.
  • inbound: Inbound call.
  • outbound: Outbound call.
recording String The name of the call recording file.
did_number String The number that the caller dialed.
did_name String The name associated with the DID number.
agent_ring_time Integer The ringing duration between the time when the call enters the queue and an agent answers the incoming call. (Unit: Second)
uid String The unique ID of the CDR.
call_note_id String The unique ID of the call note.
enb_call_note Integer Whether call note can be edited or not.
  • 0: Call note can not be edited.
  • Non-zero value: Call note can be edited.
is_display Integer Whether the CDR is displayed on extension user's call log.
  • 0: Disabled
  • 1: Enabled

Report example

Extension 2005 calls extension 2002.

{
    "type": 30012,
    "sn": "3631A2124XXX",
    "msg": {
        "call_id": "1780625997.105",
        "time_start": "2026-06-05 10:19:57",
        "call_from": "1002",
        "call_to": "1000",
        "call_duration": 15,
        "talk_duration": 10,
        "src_trunk_name": "",
        "dst_trunk_name": "",
        "pin_code": "",
        "status": "ANSWERED",
        "type": "Internal",
        "recording": "",
        "did_number": "",
        "did_name": "",
        "agent_ring_time": 0,
        "uid": "202606051019574F506",
        "call_note_id": "20260605101957-AACE5",
        "enb_call_note": 2,
        "is_display": 1
    }
}