I see that Vapi is importing Twilio phone numbers ...
# ask-ai
s
I see that Vapi is importing Twilio phone numbers from their customer by simply pointng the webhook of the Twilio phone number directly to their HTTP server. Can we do something similar for livekit?
t
Thanks for reaching out, aric. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking whether LiveKit can be used like Vapi+Twilio—i.e., point a phone-number webhook straight at your HTTP server and have LiveKit behave the same way. Short answer: not exactly — LiveKit can send webhooks to your HTTP server for room/participant/ingress/egress and SIP call events, but LiveKit does not manage or “import” phone numbers itself. To get PSTN calls into LiveKit you need a SIP trunk (e.g., Twilio, Plivo) that forwards calls into LiveKit; once inbound calls reach LiveKit you can receive
sip_call_initiated
,
participant_joined
, etc., webhooks on your server and handle them like Twilio webhooks. If you want, I can: • Walk you through a basic flow to accept PSTN calls (SIP trunk → LiveKit → your webhook). • Provide step-by-step setup for Twilio SIP → LiveKit and how to configure LiveKit webhooks. • Show example webhook payloads and how to validate them on your server. Which of those would you like to do next? Sources: Webhooks | LiveKit docs | server-sdk-js | livekit/livekit_composite | DeepWiki | Live Conversations with AI using ChatGPT and WebRTC | Create and configure a Plivo SIP trunk | LiveKit docs