I have self hosted livekit server and livekit sip,...
# ask-ai
r
I have self hosted livekit server and livekit sip, with Telenyx as my SIP provider. I am using IP based authentication, but on inbound calls, telenyx is unable to send calls to my server, what could be possible reason. I checked telenyx logs and found SIP Error 408. Although I am able to make outbound calls. It feels like I am missing some configuration from sip.yaml side or telenyx sude
t
Thanks for reaching out, Ambesh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you troubleshoot the SIP Error 408 for your inbound calls. Could you please share a bit more about your setup? Specifically: • Have you had a chance to verify that the SIP URI in your Telnyx account matches the one set up in your LiveKit SIP server? • Are there any particular dispatch rules or authentication settings in your
sip.yaml
file that might be influencing inbound calls? • Have you looked into whether there might be any network connectivity issues between Telnyx and your LiveKit SIP server? Getting these details will really help us pinpoint the cause and find the best solution for you. Sources: Docs::Telephony | SIP troubleshooting guide | LiveKit Docs
r
I have provided my ec2 public IP for routing, which I see works when making an outbound call. I have looked for it via tcpdump command on my 5060 port, it works, but no logs when an inbound calls. And on telenyx I couldnt find where to provide SIP URI, find if you can. I have created an Inbound Trunk with Allowed Numbers of me and my peers for testing, as well as have added Telenyx SIP signalling Addresses in Allowed Address. I am using the DID bought at telenyx and have created an SIP connection for that number. I havent looked into network connectivity, because I thought that if outbound call is happeneing, so inbound should also work. If the communication between my EC2 and telenyx is different in inbound and outbound calls, let me know
t
Let's work together to resolve the SIP Error 408 for your inbound calls. Here are some steps that should help: 1. First, please double-check that the SIP URI in your Telnyx account exactly matches your LiveKit SIP endpoint. Remember, the endpoint is your LiveKit SIP URI without the
sip:
prefix. For example, if your SIP URI is
sip:vjnxecm0tjk.sip.livekit.cloud
, then your endpoint should be
vjnxecm0tjk.sip.livekit.cloud
. 2. Next, in Telnyx, head over to Voice → SIP Trunking → Create Connection, and choose FQDN Authentication. Here, add your LiveKit SIP endpoint as the FQDN. 3. Also, make sure the phone number format in Telnyx is set to
+E.164
and that it matches the format you’re using in your LiveKit inbound trunk configuration. 4. Take a moment to review your
sip.yaml
file to confirm the dispatch rules and trunk configurations are properly set up for inbound calls. 5. Lastly, test the network connectivity between your EC2 instance and Telnyx for inbound calls. Since outbound and inbound call routing can differ, please ensure port 5060 (or 5061 if you’re using TLS) is open for inbound traffic. If any of these steps feel unclear or if you’d like me to walk you through them, just let me know—I’m here to help! Sources: Docs::Telephony | Docs::Telephony | Docs::Telephony | Docs::Telephony | SIP trunk setup | LiveKit Docs