Question
Why do outgoing calls from Twilio take over 50 seconds to connect, experience delays before reading text aloud via <Say>, and drop or ignore DTMF digit inputs (ACKs) from the recipient?
Product
Twilio Programmable Voice
Answer
This issue may be caused by two separate configuration factors in your call flow and API requests:
Sequential TwiML Execution vs. DTMF Gathering:
If your <Say> and <Pause> verbs are placed outside or after a <Gather> verb, Twilio processes the TwiML sequentially. It plays all audio in full before activating the DTMF tone listener. Any buttons pressed by the recipient while the message is being read are ignored because the <Gather> verb has not started yet.
Solution: Nest all <Say> and <Pause> verbs inside the <Gather> block and define an explicit timeout attribute:
<Response>
<Gather action="https://your-server-url.com/callback" actionOnEmptyResult="true" method="GET" numDigits="1" timeout="10">
<Say language="es-MX" voice="alice">Se genero una nueva alerta.</Say>
<Pause length="1"/>
<Say language="es-MX" voice="alice">Presione cualquier botón para dar Acknowledgement a la llamada.</Say>
</Gather>
</Response>Synchronous Answering Machine Detection (AMD) Latency:
When synchronous AMD (MachineDetection=Enable) is enabled on outbound calls to external endpoints like Teams, Twilio pauses audio playback until the detection engine analyzes the initial greeting/silence. This creates a 5 to 10+ second initial silence before the TwiML starts executing.
Solution: Use asynchronous Answering Machine Detection by setting AsyncAmd=true and supplying an AsyncAmdStatusCallback URL in your outbound call API request. This allows the call to connect and execute your TwiML immediately without setup delay, while AMD runs in the background and posts the detection results to your webhook.
Additional Information
For complete implementation details on handling AMD callbacks concurrently without delaying speech execution, review the Twilio Asynchronous AMD Documentation.