millions-table-94898
09/10/2025, 7:20 PMtall-airline-16756
09/10/2025, 7:20 PMtall-airline-16756
09/10/2025, 7:20 PMwait_until_answered
behavior. It sounds like it’s triggering when the phone rings instead of waiting for the call to be answered, which can definitely be a bit confusing. This might be connected to how your Twilio trunk is set up or how the signaling is managed. To help you better, could you please confirm a few things for me?
• Are you using any specific configurations or custom settings in your Twilio trunk?
• Is this happening with all outgoing calls, or only in certain situations?
• Have you had a chance to check the Twilio logs to see if the call status actually changes to "answered"?
Once I have these details, I’ll be in a much better position to assist you and find a solution that works. I’m here to help, so please don’t hesitate to share any other info you think might be relevant!millions-table-94898
09/10/2025, 7:22 PMtall-airline-16756
09/10/2025, 7:23 PMwait_until_answered
parameter is there to pause the process until the call is actually answered—whether by a person or voicemail. In a typical Twilio trunk setup, LiveKit waits for a 200 OK SIP response, which tells us the call has been picked up. If the phone is just ringing and hasn’t been answered yet, that response won’t come through, so the API won’t move forward.
If you’re noticing that wait_until_answered
is triggering too soon, like right when the phone starts ringing, it might mean there’s a hiccup with how the SIP signaling is being handled. Here are a few things you can double-check:
• Make sure your Twilio trunk is set up properly to manage SIP signaling and authentication.
• Take a look at Twilio’s call logs to see if the 200 OK response is being sent too early.
• Verify that the call timeout is long enough—LiveKit usually defaults to about 80 seconds for unanswered calls.
If you’re still running into trouble after that, it might be helpful to dive a bit deeper into the SIP signaling flow together. I’m here to help you through it!
Sources: SIP APIs | LiveKit Docs | SIP outbound trunk | LiveKit Docs | Make outbound calls | LiveKit Docs | pkg/service/sip.go