When dialing out to a PSTN Number using , an outbound call is initiated. The call transitions from the initiated state to the ringing state when the phone starts ringing. It transitions to the answered state when the call is picked up, and finally to the completed state when the call is over.
With statusCallbackEvent, you can subscribe to receive webhooks for the different call progress events: initiated, ringing, answered, or completed for a given call. The statusCallbackEvent attribute allows you to specify which events calls.teleapi should webhook on.
To specify multiple events separate them with a comma: initiated,ringing,answered,completed. If a statusCallback is provided and no status callback events are specified the completed event will be sent by default. Compared to creating an outbound call via the API, outbound calls created using are initiated right away and never queued.
The following shows a timeline of possible call events that can be returned and the different call statuses that a leg may experience: