This guide will help you set up SIP trunking between Twilio and Callers. Follow these steps to establish the connection and configure your phone numbers.
Please follow steps below if you are looking to connect a Twilio Flex account.
Regional Configuration: Twilio processes and stores call data in the region where the SIP trunk is configured. Choose the region closest to your infrastructure for optimal performance.
NAT Configuration: If deploying behind NAT:
For UDP: Send periodic SIP OPTIONS to keep NAT bindings open
For TCP/TLS: Use either SIP OPTIONS or CR-LF keep-alives
Firewall Settings: Allow ALL of Twilio’s IP ranges for both signaling and media traffic
SIP Headers: Ensure your infrastructure sends a value of 70 for the Max-Forwards header
Phone Numbers: Always use E.164 format for phone numbers sent via SIP