Skip to main content

outgoing_call_end

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

When This Event Fires

  • Either party hangs up
  • The remote party does not answer (timeout)
  • The remote party is busy or declines the call

Payload

FieldTypeDescription
eventstringAlways "outgoing_call_end"
callerstringSIPSIM phone number that placed the call
receiverstringRemote party's 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
BUSYRemote party was busy
NOANSWERNo answer within the timeout period

Example Payload

Answered call:

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

Unanswered call:

{
"event": "outgoing_call_end",
"caller": "+33198765432",
"receiver": "+33612345678",
"time": "2025-01-15T14:00:30Z",
"pbx_id": "call_def456",
"duration": 0,
"audio_path": null,
"status": "NOANSWER"
}

Call Lifecycle

  1. outgoing_call_start — call initiated
  2. outgoing_call_answer — remote party answers (if applicable)
  3. outgoing_call_end — call completed