1. Does LiveKit support SIP INVITE over WebSocket/...
# ask-ai
s
1. Does LiveKit support SIP INVITE over WebSocket/WSS for inbound trunks (or voice bot flows)?
t
Thanks for reaching out, Ajay. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for reaching out! I wanted to let you know that LiveKit currently doesn’t support SIP INVITE over WebSocket/WSS for inbound trunks or voice bot flows. Instead, SIP traffic in LiveKit is managed through the standard SIP protocols like UDP, TCP, or TLS on specific ports, such as the default SIP port 5060. While WebSocket/WSS is indeed used for LiveKit’s main signaling protocol to connect clients to rooms, it’s not utilized for SIP transport. If you have any more questions or need further clarification, I’m here to help! Sources: pkg/sip/inbound.go | CHANGELOG.md
s
if i self host the sip server can i make it support websocket
t
I'm glad you're exploring the LiveKit SIP server! If you're self-hosting, you can absolutely set it up to support both WebSocket (WS) and secured WebSocket (WSS) for SIP transport. The server uses the
sipgo
library, which nicely includes support for WebSocket transport through the
WSTransport
and
WSSTransport
types. Here’s a simple way to enable WebSocket transport: • First, configure your SIP server to listen on a TCP network interface. • Then, use the
ServeWS
method if you want WebSocket, or
ServeWSS
if you prefer secured WebSocket (WSS). • If you're going with WSS, you'll just need to provide TLS certificates and set up the listener using a
tls.Config
. By default, the WebSocket settings aren’t directly exposed, but you can definitely tweak the server code or your integration to get those WebSocket listeners up and running. If you’d like, I’m here to help with more details on how to implement this—just let me know! Sources: server.go | pkg/config/config.go | Self-hosted SIP server | LiveKit Docs
s
exactly what should i change to do this
t
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!