?
VoiceCallResult
TypeThe accepted outbound call, already dialing: its call-record id and the two numbers.
What voice.call returns the moment a call is accepted. The status is always dialing, so treat this as an acknowledgement, not an outcome: whether the call was answered, reached voicemail, or was declined lands on the call record under sessionId. Read that record from the call log for the result.
VoiceCallResult.ts
interface VoiceCallResult { sessionId: string status: 'dialing' from: string to: string }
Fields
sessionId
string
The call record's id. The call appears under it in the voice call log; key any record you write to it.
status
'dialing'
Always 'dialing': the call was accepted and is ringing.
from
string
The caller-ID number the person sees, the app's dedicated number.
to
string
The dialed number.
Key a record to the call
const call = await voice.call({ to }); await Callbacks.push({ sessionId: call.sessionId, to: call.to });