Dial
POST/calls
Dial a number or SIP URI from a given connection. A successful response will include a call_leg_id
which can be used to correlate the command with subsequent webhooks.
Expected Webhooks (see schema below):
call.initiated
call.answered
orcall.hangup
call.machine.detection.ended
ifanswering_machine_detection
was requestedcall.machine.greeting.ended
ifanswering_machine_detection
was requested to detect the end of machine greetingcall.machine.premium.detection.ended
ifanswering_machine_detection=premium
was requestedcall.machine.premium.greeting.ended
ifanswering_machine_detection=premium
was requested and a beep was detectedstreaming.started
,streaming.stopped
orstreaming.failed
ifstream_url
was set
When the record
parameter is set to record-from-answer
, the response will include a recording_id
field.
Request
Responses
200:
Successful response with details about a call status that includes recording_id.
default:
Unexpected error