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
| Field | Type | Description |
|---|---|---|
event | string | Always "outgoing_call_end" |
caller | string | SIPSIM phone number that placed the call |
receiver | string | Remote party's phone number |
time | string | Timestamp of the event |
pbx_id | string | Unique call identifier in the PBX |
duration | integer | Call duration in seconds (0 if not answered) |
audio_path | string | URL to the call recording, if available |
status | string | Call end status (see below) |
Status Values
| Status | Description |
|---|---|
ANSWER | Call was answered and completed normally |
BUSY | Remote party was busy |
NOANSWER | No 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
outgoing_call_start— call initiatedoutgoing_call_answer— remote party answers (if applicable)outgoing_call_end— call completed
Related Events
outgoing_call_start— when the call was placedoutgoing_call_answer— when the call was answeredincoming_call_end— equivalent event for incoming callsspeech— transcription of the call (generated asynchronously)summary— AI summary of the call (generated asynchronously)