i am self hosting sip, getting this error sip_1 ...
# ask-ai
f
i am self hosting sip, getting this error sip_1 | 2025-12-03T185357.829Z INFO sip sip/inbound.go:335 processing invite {"nodeID": "NE_St5Bsqa6o8Wx", "callID": "SCL_eJDMs3EeQbfy", "traceID": "654a444d73334565", "fromIP": "18.214.109.141", "toIP": "139.59.68.1:5060", "transport": "udp", "fromHost": "zt.plivo.com", "fromUser": "+917359056097", "toHost": "139.59.68.1", "toUser": "+918035739543", "sipTag": "1c1958419722", "sipCallID": "58383213412202502356@100.64.216.4"} sip_1 | 2025-12-03T185358.831Z WARN sip sip/inbound.go:400 Rejecting inbound, auth check failed {"nodeID": "NE_St5Bsqa6o8Wx", "callID": "SCL_eJDMs3EeQbfy", "traceID": "654a444d73334565", "fromIP": "18.214.109.141", "toIP": "139.59.68.1:5060", "transport": "udp", "fromHost": "zt.plivo.com", "fromUser": "+917359056097", "toHost": "139.59.68.1", "toUser": "+918035739543", "sipTag": "1c1958419722", "sipCallID": "58383213412202502356@100.64.216.4", "error": "no response from servers"}
t
Thanks for reaching out, Manav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You’re seeing "Rejecting inbound, auth check failed … error: 'no response from servers'." I can help troubleshoot—this means the SIP service can't reach LiveKit (or related services) to validate the trunk. To narrow it down, please share the following: • The SIP service
config.yaml
values (or paste these fields):
ws_url
,
api_key
,
api_secret
,
redis.address
, and
sip_port
(mask secrets if needed). • Can the SIP container reach the LiveKit WebSocket port? From the SIP host run: ◦
telnet <livekit-host> 7880
or
curl -v http://<livekit-host>:7880
and paste the result. • Can the SIP host reach Redis?
redis-cli -h <redis-host> -p <port> ping
(or paste connection test output). • Any firewall/NAT between SIP and LiveKit (cloud VPC rules, host firewall, or Docker network)? If yes, which ports are allowed outbound/inbound? • Are you using UDP for SIP (logs show
transport: "udp"
)? Is Plivo configured with
;transport=udp
to your SIP IP? • Are LiveKit and SIP using the same API key/secret and Redis namespace? Confirm no typos or extra whitespace. If you prefer, paste sanitized log lines of the startup for SIP and LiveKit showing connection attempts. Once I have those results I’ll recommend the exact fix (ws_url/credentials/Redis, firewall rule, or transport change). Sources: Self-hosted SIP server | LiveKit docs
f
can my local sip server connect to livekit cloud agents?
t
Yes — your local (self-hosted) SIP server can connect to a cloud-hosted LiveKit SIP server. To make it work, ensure the following: • Configure the SIP service with the cloud LiveKit WebSocket URL in
ws_url
(use
wss://
for TLS when possible). • Use the correct
api_key
and
api_secret
that the cloud LiveKit instance expects; no typos or extra spaces. • Point the SIP service to the same Redis instance/namespace used by the cloud LiveKit (if required by your deployment). • Ensure network connectivity and firewall rules allow the SIP host to reach: ◦ LiveKit WebSocket port (default 7880) — outbound from SIP to LiveKit. ◦ Redis port (default 6379) if Redis is remote. ◦ SIP signaling ports you use (e.g., 5060/udp or 5060/tcp) for incoming traffic from carriers like Plivo. • Match SIP transport between your carrier and your SIP server (UDP vs TCP vs TLS). If using UDP, set the carrier URI with `;transport=udp`; TLS provides more reliable connectivity. • If NAT is involved, ensure correct external IP/port mappings and that any required STUN/TURN or RTP port ranges are open for media (e.g., 10000–20000 UDP if used). If you want, tell me: • the
ws_url
, which transport you plan to use (UDP/TCP/TLS), and whether Redis is local or cloud-hosted — I’ll give the exact config checks and connectivity tests to run.
f
can my local sip server connect to livekit cloud agents? (edited)
t
Yes — your local SIP server can connect to LiveKit cloud agents. Key requirements: • Set
ws_url
to the cloud LiveKit WebSocket (use
wss://
for TLS). • Use the correct
api_key
and
api_secret
for the cloud instance. • If Redis is required, point the SIP service to the same Redis instance/namespace the cloud uses. • Ensure network connectivity and firewall rules allow outbound from your SIP host to: ◦ LiveKit WebSocket port (default 7880) ◦ Redis (default 6379) if remote ◦ Any SIP signaling ports you accept (e.g., 5060) for incoming carrier traffic • Match SIP transport (UDP/TCP/TLS) between carrier, your SIP server, and LiveKit. For UDP, include
;transport=udp
in carrier URIs; TLS is recommended for reliability. • If NAT is involved, ensure external IP mappings and RTP ports (e.g., 10000–20000 UDP) are open for media. If you’d like, tell me your planned
ws_url
, transport (UDP/TCP/TLS), and whether Redis is local or cloud — I’ll provide exact config checks and connectivity commands to run.
f
does the self host livekit sip support working with livekit cloud for trunks and dispatch rules etc?
t
Short answer: No — self-hosted LiveKit SIP does not integrate with LiveKit Cloud for trunks, dispatch rules, or cloud-managed SIP features. Details: • Trunks and dispatch rules in LiveKit Cloud are managed by the cloud SIP infrastructure and dashboard/APIs. • A self-hosted SIP server is independent: you must deploy and manage trunks, routing/dispatch, Redis, ports, and credentials in your own environment. • You cannot mix self-hosted SIP with LiveKit Cloud’s SIP management — choose one deployment model. If you’d like, tell me whether you want to (a) keep everything self-hosted and need help configuring trunks/dispatch locally, or (b) move to LiveKit Cloud and need guidance on migrating — I can provide the exact next steps for either option. Sources: Self-hosted SIP server | LiveKit docs | SIP overview | LiveKit docs | SIP trunk setup | LiveKit docs