curl --location --request POST '/calls//actions/transfer' \
--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",
"custom_headers": [
{
"name": "head_1",
"value": "val_1"
},
{
"name": "head_2",
"value": "val_2"
}
],
"early_media": true,
"from": "+18005550101",
"from_display_name": "Company Name",
"media_encryption": "SRTP",
"sip_auth_password": "password",
"sip_auth_username": "username",
"sip_headers": [
{
"name": "User-to-User",
"value": "value"
}
],
"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"
}'