create a call
Path parameters
AccountSid
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
from
The calling party number
to
Destination for call
application_sid
The application to use to control this call. Either application_sid or call_hook is required.
answerOnBridge
If set to true, the inbound call will ring until the number that was dialed answers the call, and at that point a 200 OK will be sent on the inbound leg. If false, the inbound call will be answered immediately as the outbound call is placed.
call_hook
call_status_hook
fromHost
The hostname to put in the SIP From header of the INVITE
timeout
The number of seconds to wait for call to be answered. Defaults to 60.
timeLimit
The max length of call in seconds
tag
Initial set of customer-supplied metadata to associate with the call (see jambonz ‘tag’ verb)
headers
The customer SIP headers to associate with the call
sipRequestWithinDialogHook
The sip indialog hook to receive session messages
speech_synthesis_vendor
The vendor for Text to Speech (required if application_sid is not used)
speech_synthesis_language
The language for Text to Speech (required if application_sid is not used)
speech_synthesis_voice
The voice for Text to Speech (required if application_sid is not used)
speech_recognizer_vendor
The vendor for Speech to Text (required if application_sid is not used)
speech_recognizer_language
The language for Speech to Text (required if application_sid is not used)
amd
Response
call successfully created
sid