is there a reason for the sip suddenly not working...
# ask-ai
f
is there a reason for the sip suddenly not working , the agent has been initialize successfully and has the worker is registered. However when i tried to call it doesnt receive the invite.After 10 minutes or so the sip suddenly working again and able to connect the agent to the call without any changes to the code. I have only encounter this problem today and for the past day the livekit cloud sip has been working normally.
t
Thanks for reaching out, Huy. 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 get this sorted out! Could you share a bit more about your SIP setup? For example: • Are you working with a particular SIP provider or using a specific configuration? • Did you happen to see any error messages or logs when the SIP wasn’t working? • Have there been any recent changes to your network or environment that you’re aware of? Having these details will really help us figure out what’s going on together.
f
i use livekit cloud with telnyx , there are no logs when i check on telnyx it show that telnyx sent invites but ivekit doesnt receive and i didnt change anything
t
Let's work through some steps together to help resolve the issue where Telnyx sends SIP invites but LiveKit doesn't seem to receive them: • Verify Inbound Trunk Configuration: Please double-check that the credentials in Telnyx exactly match those in LiveKit. Also, make sure the SIP URI in Telnyx is pointing to the correct LiveKit SIP endpoint (for example,
sip:bwwn08a2m4o.sip.livekit.cloud
). • Check SIP Endpoint and TLS Settings: It’s important to use the right SIP address and transport protocol. For Telnyx, the endpoint should be
<http://sip.telnyx.com|sip.telnyx.com>
, and TLS should be enabled on port 5061. • Validate Number Formatting: Setting the destination number format to
+E.164
in Telnyx helps ensure everything is formatted properly. • Firewall and IP Accessibility: Let’s confirm that no firewalls are blocking SIP traffic from Telnyx to LiveKit on the required ports (5060 for UDP/TCP or 5061 for TLS). • Dispatch Rule and Agent Configuration: Make sure there’s a valid dispatch rule in LiveKit to handle the incoming number, and check that the agent configuration aligns with this dispatch rule. If you’re still running into issues after these checks, it would be helpful to review the SIP logs from Telnyx to see if the INVITE is being sent and to look for any response codes. Please feel free to reach out if you’d like me to guide you through any of these steps—I’m here to help! Sources: Accepting inbound calls | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs | Secure trunking | LiveKit Docs | Create and configure Telnyx SIP trunk | LiveKit Docs | Accepting incoming calls | LiveKit Docs