twillio errors when connecting to livekit sip acco...
# ask-ai
s
twillio errors when connecting to livekit sip account code 503
t
Thanks for reaching out, Youssef. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry to hear you're encountering the SIP error code 503, which means "Service Unavailable." This usually happens when the server, like Twilio's SIP infrastructure, is temporarily unable to process the request—often due to being overloaded or undergoing maintenance. To better support you, could you please share a bit more about what’s going on? For example: • When exactly does the error show up (during call setup, in the middle of a call, etc.)? • Have there been any recent changes or specific configurations made? • Do you have any logs or additional error messages you can share? Once I have this info, I’ll be more than happy to help you troubleshoot or point you toward the best next steps. Sources: protobufs/livekit_sip.proto
s
when initiating the call
t
I'm sorry to hear you're encountering the SIP error 503 ("Service Unavailable") when trying to initiate a call. This usually means Twilio is having trouble processing the request. Let's work through some steps together to help resolve this: 1. Verify Twilio Configuration: Please double-check that your Twilio trunk is set up to send outgoing calls to your LiveKit SIP URI with the correct
;transport=tcp
parameter. Make sure the trunk settings in your Twilio console are active and properly filled out. 2. Check Credentials and Registration: It’s important to confirm that the
TWILIO_SIP_USERNAME
and
TWILIO_SIP_PASSWORD
in your LiveKit environment file exactly match the credentials you created in the Twilio console for your trunk's credential list. 3. Validate Phone Number Format: Ensure the phone number you’re dialing follows the correct E.164 international format (like
+19085550100
). Also, check in the Twilio console that the outgoing phone number linked to your trunk is accurate and has permission to make outbound calls. 4. Review Logs: Take a look at the call logs in your LiveKit Cloud dashboard to find the
call_status_code
and any error messages. Then, check the detailed call logs in the Twilio console to trace the call and pinpoint where the 503 error happened. 5. Consult Twilio Documentation: Since this error comes from Twilio, it’s a good idea to review their documentation or reach out to their support team. They can help identify issues like temporary service outages, account call rate limits, or insufficient funds. Please feel free to reach out if you’d like me to walk you through any of these steps or if you want to share more details about your setup. I’m here to help! Sources: Using Wavix to accept and make calls | LiveKit docs | README.md | packages/sip--um-actually/src/setup-livekit.ts | livekit-protocol/livekit/protocol/sip.py | lib/livekit/proto/livekit_sip_pb.rb
s
does having a trial account affect the connection?
t
Thank you for reaching out! While the available information doesn’t clearly state whether a Twilio trial account affects SIP connectivity with LiveKit, it’s good to keep in mind that trial accounts sometimes come with certain limitations that might impact how things work. Could you share a bit more about the issues you’re experiencing? If you’re noticing any specific behaviors or error messages, that info would really help us get to the bottom of this together. I’m here to help! Sources: .env.example | packages/sip--um-actually/src/setup-livekit.ts | Secure trunking | LiveKit docs | HD voice for SIP | LiveKit docs