(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.
|
| type | String | Call type.
|
| 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.
|
Report example
Extension 2005 calls extension 2002.
{
"type":30012,
"sn":"3631A2124XXX",
"msg":"{
"call_id":"1651057476.362",
"time_start":"2022-04-27 19:04:36",
"call_from":"2005",
"call_to":"2002",
"call_duration":24,
"talk_duration":21,
"src_trunk_name":" ",
"dst_trunk_name":" ",
"pin_code":" ",
"status":"ANSWERED",
"type":"Internal",
"recording":"20220427190445-1651057476.362-2005-2002-Internal.wav",
"did_number":" ",
"did_name": "",
"agent_ring_time": 0,
"uid": "2024111913594421D77",
"call_note_id":"20250307162604-15379",
"enb_call_note":1
}"
}