An open SIP endpoint attracts scanners and toll fraud. Tried locks each number's trunks with IP allow lists, digest credentials and encryption settings. This page lists what you can set per number or trunk and what is set for you.
Inbound: who may send calls#
| Control | Where | Effect |
|---|---|---|
allowed_inbound_addresses |
Number (API) or shared trunk | Only these IPs or CIDRs may send INVITEs for the number. |
inbound_auth_username, inbound_auth_password |
Shared trunk | Your carrier must answer a digest challenge with these credentials. |
| Twilio gateway lock | Automatic for Twilio trunks | Numbers on a *.pstn.twilio.com trunk accept INVITEs only from Twilio's signalling blocks unless you set your own addresses. See Twilio. |
allowed_inbound_country_list |
Number | Callers from other countries are hung up. |
An imported number with no allowed_inbound_addresses (and not on a Twilio trunk) accepts INVITEs for that number from any address. Set the list for your carrier or PBX.
Outbound: who may receive our calls#
- Outbound calls authenticate to your trunk with
sip_trunk_auth_usernameandsip_trunk_auth_password. The password is stored encrypted with AES-GCM and never returned by the API. - Add Tried's SIP address ranges to your trunk's allow list.
GET /sip-originationreturns them asip_ranges, and the dashboard lists them under Connect via SIP trunking, Using a Twilio number? Setup steps. - Restrict destinations with
allowed_outbound_country_list.
Encryption#
| Setting | Values | Default |
|---|---|---|
transport |
TCP, UDP, TLS |
TCP |
media_encryption |
disabled (Off), allowed (Allowed (SRTP if offered)), required (Required (SRTP only)) |
allowed |
Use TLS with required for full encryption of signalling and media when your carrier supports it. Change both on the number's Routing and SIP card; the trunks are re-provisioned.
Checklist#
- Every imported number has
allowed_inbound_addressesor sits on a Twilio trunk. - Shared trunks use inbound digest auth or an address list.
- Outbound trunks use a strong, unique password.
- Each number has outbound countries limited to where you call.
- TLS and SRTP are on where the carrier supports them.