Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request URL configured for the connection in the Mission Control Portal.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the TeXML application used for the call.
Iniatiate Call request object
The phone number of the called party. Phone numbers are formatted with a + and country code.
"+16175551212"
The phone number of the party that initiated the call. Phone numbers are formatted with a + and country code.
"+16175551212"
To be used as the caller id name (SIP From Display Name) presented to the destination (To number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be the same as the number in the From field.
"Info"
The URL from which Telnyx will retrieve the TeXML call instructions.
"https://www.example.com/instructions.xml"
HTTP request type used for Url. The default value is inherited from TeXML Application setting.
GET, POST "GET"
A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not responding.
"https://www.example.com/instructions-fallback.xml"
URL destination for Telnyx to send status callback events to for the call.
"https://www.example.com/callback"
HTTP request type used for StatusCallback.
GET, POST "GET"
The call events for which Telnyx should send a webhook. Multiple events can be defined when separated by a space.
initiated, ringing, answered, completed "iniated ringing"
Enables Answering Machine Detection.
Enable, Disable, DetectMessageEnd "Enable"
Allows you to chose between Premium and Standard detections.
Premium, Regular "Premium"
Select whether to perform answering machine detection in the background. By default execution is blocked until Answering Machine Detection is completed.
true
URL destination for Telnyx to send AMD callback events to for the call.
"https://www.example.com/callback"
HTTP request type used for AsyncAmdStatusCallback. The default value is inherited from TeXML Application setting.
GET, POST "GET"
Maximum timeout threshold in milliseconds for overall detection.
500 <= x <= 600005000
Maximum threshold of a human greeting. If greeting longer than this value, considered machine. Ignored when premium detection is used.
2000
Silence duration threshold after a greeting message or voice for it be considered human. Ignored when premium detection is used.
2000
If initial silence duration is greater than this value, consider it a machine. Ignored when premium detection is used.
2000
Whether to cancel ongoing playback on machine detection. Defaults to true.
false
Whether to cancel ongoing playback on greeting ended detection. Defaults to true.
false
The list of comma-separated codecs to be offered on a call.
"PCMA,PCMU"
Whether to record the entire participant's call leg. Defaults to false.
false
The number of channels in the final recording. Defaults to mono.
mono, dual "dual"
The URL the recording callbacks will be sent to.
"https://example.com/recording_status_callback"
HTTP request type used for RecordingStatusCallback. Defaults to POST.
GET, POST "GET"
The changes to the recording's state that should generate a call to RecoridngStatusCallback. Can be: in-progress, completed and absent. Separate multiple values with a space. Defaults to completed.
"in-progress completed absent"
The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected. The timer only starts when the speech is detected. Please note that the transcription is used to detect silence and the related charge will be applied. The minimum value is 0. The default value is 0 (infinite)
5
The audio track to record for the call. The default is both.
inbound, outbound, both "inbound"
The password to use for SIP authentication.
"1234"
The username to use for SIP authentication.
"user"
Whether to trim any leading and trailing silence from the recording. Defaults to trim-silence.
trim-silence, do-not-trim false
Successful response upon initiating a TeXML call.
{
"from": "+13120001234",
"to": "+13121230000",
"status": "queued"
}