31408: Request Timeout
VOICE
ERROR
This indicates a Voice request timed out. Twilio returns this code during Voice SDK registration, unregistration, connect, and CallInvite.accept flows. For call-related HTTP requests, Twilio enforces a hard 15-second upper timeout on the initial response packet.
- Your Voice webhook or other call-related HTTP request did not send the initial response packet within Twilio's 15-second read timeout.
- The call is on a restrictive network, and the Voice SDK cannot connect unless you provide ICE servers.
- Return TwiML from your Voice webhook within 15 seconds so Twilio receives a response before the read timeout expires.
- Use webhook connection overrides such as
ct,rt,tt,rc, andrpwhen you need to tune callback behavior, but keep in mind that the 15-second hard limit still applies to call-processing requests. - For
connectandCallInvite.acceptfailures on restrictive networks, provide ICE servers withConnectOptions.Builder.iceOptions(...)orAcceptOptions.Builder.iceOptions(...).