The Situation When making outbound calls with C...
# telephony
e
The Situation When making outbound calls with CreateSIPParticipant and wait_until_answered=false: 1. The API call succeeds and returns a SIP participant 2. The participant joins the room 3. The call begins dialing asynchronously 4. If the call fails, the participant disconnects 5. We receive only a high-level DisconnectReason (e.g., USER_REJECTED) The Problem The underlying SIP status codes (e.g., 486, 603, 480) are not exposed when
wait_until_answered=false
. This information is already available when
wait_until_answered=true
(via
TwirpError.metadata['sip_status_code'])
, but we need it for the async flow as well when blocking API calls for 30+ seconds isn't practical. Question Is there currently a way to access detailed SIP status codes for async call failures that we're missing?
It looks like it exists on
AnalyticsEvent.sip_call.call_status_code
, is this accessible somehow?