i've to provide option for Import SIP Trunk where ...
# ask-ai
e
i've to provide option for Import SIP Trunk where user enter their Inbound and Outbound configuration,n do livekit have any integration for this?
t
Thanks for reaching out, Aman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking if LiveKit provides an integration to let users import SIP trunk settings (enter inbound/outbound config) directly. Short answer: LiveKit does not provide a built-in "import SIP trunk" feature or single-file/config upload UI. What you can do: • Programmatically create and manage trunks using LiveKit’s SIP APIs: ◦ Use
CreateSIPInboundTrunk
to configure inbound settings (phone numbers, allowed IPs, auth, metadata). ◦ Use
CreateSIPOutboundTrunk
to configure outbound settings (provider address, caller ID, auth, routing). • Build a UI or import workflow in your app that accepts user input (or parses a file) and maps those values to the SIP API calls. • Ensure the JWT you use includes the SIP admin grant required to manage trunks. If you'd like, I can: • Outline a minimal example request flow for importing a single trunk (fields to collect + sample API payload). • Or ask a couple quick questions to tailor that example to your needs (file format you want to import, which fields you must support, backend language). Which would you prefer? Sources: SIP outbound trunk | LiveKit docs | SIP APIs | LiveKit docs | SIP inbound trunk | LiveKit docs
e
for testing, can i get the inbound, outbound config from twilio
t
LiveKit can't provide Twilio account details or configs. To test, retrieve the SIP trunk settings from your Twilio console and map them into LiveKit's SIP APIs. Quick guide — what to collect from Twilio: • Inbound (Trunk) settings: SIP URI/Trunk SID, incoming SIP URI or SIP registration info, phone numbers/DTMF handling, IP access control list (allowed IPs), authentication (if using credential lists), and webhook URLs for call events. • Outbound (Credential/Origination) settings: Outbound SIP host/domain, port/transport (UDP/TCP/TLS), authentication username/password or IP-based auth, caller ID settings, and any routing rules. How to use them with LiveKit: 1. For inbound trunks → map Twilio’s incoming SIP target, allowed IPs, numbers, and auth into a
CreateSIPInboundTrunk
request. 2. For outbound trunks → map Twilio’s outbound host/address, auth credentials, and caller ID into a
CreateSIPOutboundTrunk
request. 3. Ensure your JWT has the SIP admin grant to create trunks. If you tell me which Twilio fields you can access (or paste a redacted example config), I can create a sample LiveKit API payload tailored for testing.