I am adding a SIP truck from twilio for a outbound...
# ask-ai
d
I am adding a SIP truck from twilio for a outbound call setup and i see this - Hostname or IP the SIP INVITE is sent to. This is not a SIP URI and shouldn't contain the sip: protocol. what should i add here?
t
Thanks for reaching out, Harsha. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
When you're setting up an outbound call with Twilio, just pop the Twilio trunk's domain name into the Hostname or IP field—make sure it ends with
pstn.twilio.com
. So, if your trunk is called
my-trunk
, you'd enter
my-trunk.pstn.twilio.com
. Oh, and a quick heads-up: don’t include the
sip:
prefix in this field. Sources: Create and configure a Twilio SIP trunk | LiveKit Docs | SIP outbound trunk | LiveKit Docs | protobufs/rpc/sip.proto | SIP APIs | LiveKit Docs
d
where can i find this ip address in the twilio dashboard?
t
Hey there! To find your Twilio trunk domain (Termination SIP URI) in the Twilio dashboard, just follow these simple steps: 1. Log in to the Twilio Console. 2. Head over to Elastic SIP Trunking → Manage → Trunks. 3. Pick your trunk and click on the Termination tab. 4. You'll see the Termination SIP URI field showing your domain name (something like
mytrunk.pstn.twilio.com
). Just a heads-up: Twilio doesn’t offer static IP addresses for SIP trunks. So, if you’re setting up access control, it’s best to use the domain name or SIP authentication instead of relying on IP-based allowlisting. Hope that helps! Sources: Create and configure a Twilio SIP trunk | LiveKit Docs | Making calls using SIP | LiveKit Docs | SIP outbound trunk | LiveKit Docs | Create and configure Telnyx SIP trunk | LiveKit Docs
d
but livekit is asking for a hostname or address right
t
Hey there! Just to clarify, LiveKit needs a hostname or address when you're setting up your SIP trunk. For this, you'll want to use the Twilio trunk's domain name — that's the Termination SIP URI (something like
mytrunk.pstn.twilio.com
). You can find it easily in your Twilio Console under the Termination tab of your trunk settings. When you're entering it into LiveKit, pop that domain name into the Hostname or IP field, but remember, don’t include the
sip:
part at the beginning. Hope that helps!
d
what is the CIDR Network Address that i should enter
t
When setting up the CIDR Network Address for your LiveKit SIP trunk with Twilio, it’s best to go with
0.0.0.0/0
. This covers the entire IPv4 address space and helps keep things smooth with LiveKit Cloud’s dynamic IP environment. If you prefer, you can also use
0.0.0.0/1
together with
128.0.0.0/1
to get the same effect. But just a heads-up—the safest way is to use username and password authentication by creating a Credential List in Twilio. Feel free to reach out if you want a hand with any part of this setup—I’m here to help! Sources: SIP outbound trunk | LiveKit Docs | SIP APIs | LiveKit Docs | Making calls using SIP | LiveKit Docs | Create and configure a Twilio SIP trunk | LiveKit Docs