[EVENT]

A Call Ends

A call_end event occurs whenever any call in the TelXL platform comes to an end. It contains information about the call, most notably its duration.

Parameters

call_id number

The unique number allocated to the call by TelXL.

inbound_seconds number The total duration of the inbound call—if any—in seconds.
outbound_seconds number The total duration of any outbound legs of the call, in seconds.
recorded_call_id number

If any recording was made of the call, this number can be used to identify that recording.

Although call recordings may be identified by the call_id instead, the presence of a recorded_call_id is a good indicator of whether any recording was made.

Example Response

Copy
{"event":{"event_type":"call_end", "call_id":15, "inbound_seconds":360, "outbound_seconds":60, "recorded_call_id":1500}}