Call completed

Description

The subscriber call before answer (`status` `forking`) or the conversation (`status` `dialog`) completed.

Table 1. System characteristics

Class

Type

call_cleared

Properties

Table 2. Properties
Specification Description

Name: call_id
Type: varchar
Empty value: — 

Dialog identifier in <cid>.<invitets> format (like connectionid in callevents, idconn in ccsevents).

Name: leg_id
Type: varchar
Empty value: — 

Leg identifier (Call-ID) of the side to which the event relates.

Name: clearing_device_id
Type: varchar
Empty value: — 

Device whose call completed: the called side of the fork (forking) or dialog (dialog).

Name: releasing_device_id
Type: varchar
Empty value: absent

Device that initiated completion. For status dialog — only if the terminating side is known.

Name: status
Type: varchar
Empty value: — 

forking — the subscriber call before answer completed (canceled, rejected, answered on another device); dialog — the conversation completed.

Name: cause
Type: varchar
Empty value: absent

Reason: Normal; for forking also AnsweredElsewhere — answered on another device, AbandonedByCaller — the caller canceled the call, RingingTimeout — call time expired, CancelledByPbx — the call was canceled by the system.

Name: parameters
Type: json
Empty value: — 

Reserved, empty list.

Name: ts
Type: bigint
Empty value: — 

Source call event time, ms.

Example

[
  "notify",
  {
    "sid": "my_subscr",
    "class": "ctievents",
    "type": "call_cleared",
    "eventts": 1792170183660,
    "data": {
      "call_id": "3e252fff-89da-4af5-a8cb-5d75a3383292.1792170171406",
      "cause": "Normal",
      "clearing_device_id": "13@pbx.incoplax.com",
      "parameters": [],
      "releasing_device_id": "11@pbx.incoplax.com",
      "status": "dialog",
      "ts": 1792170183660
    }
  }
]

See also