Do inbound trunks typically have auth?
# ask-ai
m
Do inbound trunks typically have auth?
t
Thanks for reaching out, Alexander. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! I wanted to share some helpful info about inbound trunks in LiveKit. They can have authentication, but it’s not mandatory. You can set it up using a username and password through the
auth_username
and
auth_password
fields. Whether you use authentication really depends on your setup and what your SIP trunking provider supports. For instance, some providers like Twilio Elastic SIP Trunking don’t support this type of authentication, while others might. Also, if your inbound trunk is set to accept calls to any phone number (meaning the
numbers
parameter is left empty), LiveKit will require either authentication or IP address restrictions to keep things secure. Sources: SIP inbound trunk | LiveKit docs | livekit/livekit_sip.pb.go
m
The numbers field should just be the number I bought from Twilio- correct?
t
Absolutely! The
numbers
field is where you’ll want to include the phone number(s) you purchased from Twilio or your SIP trunking provider. Just a quick tip: these numbers should be formatted in E.164 format, which means they start with a
+
followed by the country code and then the number itself (for example,
+15105550100
). And if you happen to have multiple numbers linked to your trunk, feel free to add them all into the
numbers
array. I’m here if you need any more help with this! Sources: Knowledge Base Content | livekit/livekit_composite | DeepWiki | SIP inbound trunk | LiveKit docs | livekit/livekit_sip.pb.go | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki