Skip to main content

incoming_call_end

Triggered when an incoming call ends, regardless of whether it was answered, missed, or busy. This is the final event in the incoming call lifecycle and includes call duration and recording information.

When This Event Fires

  • The caller or receiver hangs up
  • The call times out without being answered
  • The call is rejected or busy

Payload

FieldTypeDescription
eventstringAlways "incoming_call_end"
callerstringCaller phone number
receiverstringReceiver phone number
timestringTimestamp of the event
pbx_idstringUnique call identifier in the PBX
durationintegerCall duration in seconds (0 if not answered)
audio_pathstringURL to the call recording, if available
statusstringCall end status (see below)

Status Values

StatusDescription
ANSWERCall was answered and completed normally
MISSEDCall was not answered
BUSYReceiver was busy
NOANSWERNo answer within the timeout period

Example Payload

Answered call:

{
"event": "incoming_call_end",
"caller": "+33612345678",
"receiver": "+33198765432",
"time": "2025-01-15T10:35:00Z",
"pbx_id": "call_abc123",
"duration": 285,
"audio_path": "https://app.sipsim.com/recordings/call_abc123.mp3",
"status": "ANSWER"
}

Missed call:

{
"event": "incoming_call_end",
"caller": "+33612345678",
"receiver": "+33198765432",
"time": "2025-01-15T10:30:30Z",
"pbx_id": "call_abc123",
"duration": 0,
"audio_path": null,
"status": "MISSED"
}

Call Lifecycle

  1. incoming_call_start — call initiated
  2. incoming_call_answer — call answered (if applicable)
  3. incoming_call_end — call completed