curl --location --request POST '/calls' \
--header 'Content-Type: application/json' \
--data-raw '{
"answering_machine_detection": "detect",
"answering_machine_detection_config": {
"after_greeting_silence_millis": 1000,
"between_words_silence_millis": 1000,
"greeting_duration_millis": 1000,
"greeting_silence_duration_millis": 2000,
"greeting_total_analysis_time_millis": 50000,
"initial_silence_millis": 1000,
"maximum_number_of_words": 1000,
"maximum_word_length_millis": 2000,
"silence_threshold": 512,
"total_analysis_time_millis": 5000
},
"audio_url": "http://www.example.com/sounds/greeting.wav",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"conference_config": {
"conference_name": "telnyx-conference",
"start_conference_on_enter": true
},
"connection_id": "7267xxxxxxxxxxxxxx",
"custom_headers": [
{
"name": "head_1",
"value": "val_1"
},
{
"name": "head_2",
"value": "val_2"
}
],
"dialogflow_config": {
"analyze_sentiment": false,
"partial_automated_agent_reply": false
},
"enable_dialogflow": false,
"from": "+18005550101",
"from_display_name": "Company Name",
"link_to": "ilditnZK_eVysupV21KzmzN_sM29ygfauQojpm4BgFtfX5hXAcjotg==",
"media_encryption": "SRTP",
"send_silence_when_idle": true,
"sip_auth_password": "password",
"sip_auth_username": "username",
"sip_headers": [
{
"name": "User-to-User",
"value": "12345"
}
],
"sip_transport_protocol": "TLS",
"stream_track": "both_tracks",
"stream_url": "wss://www.example.com/websocket",
"timeout_limit_secs": 60,
"timeout_secs": 60,
"to": "+18005550100 or sip:username@sip.telnyx.com",
"webhook_url": "https://www.example.com/server-b/",
"webhook_url_method": "POST"
}'