I’m currently integrating telephony using LiveKit’s SIP support, but we’re transitioning to a WebSocket-based approach. Could anyone share guidance or examples on how to set this up? Thanks!
t
tall-airline-16756
07/11/2025, 12:13 PM
Thanks for reaching out, Swapnil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
tall-airline-16756
07/11/2025, 12:14 PM
LiveKit's official telephony integration is based on SIP (Session Initiation Protocol), using SIP trunks from providers like Twilio or Telnyx to bridge phone calls into LiveKit rooms. There is currently no official example or documented support for direct telephony integration using pure WebSocket instead of SIP.
However, LiveKit does utilize WebSockets for certain internal functions, such as transporting SIP messages or streaming audio tracks to servers for real-time processing. Still, for full telephony (PSTN) integration, SIP remains the documented and supported approach.
If your architecture requires moving away from SIP toward direct WebSocket-based telephony, you would need to implement a custom solution. The official guidance, best practices, and examples for this scenario are not covered in the current documentation.
If you need specific details on SIP-based integration or using LiveKit's WebSocket transport for related purposes, let me know your requirements and I can provide targeted guidance based on those supported areas.
Sources: Integrating with Telephony | LiveKit Docs | Integrating with Telephony | LiveKit Docs | Integrating with Telephony | LiveKit Docs | LiveKit Docs | Voice Assistants | livekit/livekit_composite | DeepWiki | transport/ws.go | Track Egress | LiveKit Docs | Agents telephony integration | LiveKit Docs
c
creamy-memory-11838
07/11/2025, 2:00 PM
Do you guys plan to do this in future ?
t
tall-airline-16756
07/11/2025, 2:01 PM
I don't have the answer you're looking for.
You could also try asking your question:
• in one of the other Slack channels
or
• to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code
If you find the answer, please post it here to help others!