I'm able to make the outbound call to twilio sip t...
# ask-ai
a
I'm able to make the outbound call to twilio sip trunk from livekit cli.. my agent is giving greeting on answer but participant's voice/audio track is not registered I guess as bot can't listen user's voice
t
Thanks for reaching out, Hiren. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Let's work together to resolve the issue where the participant's voice isn't coming through during a call via the Twilio SIP trunk. Here are some steps we can follow: 1. Verify SIP Trunk Configuration: Double-check that the username and password for your Twilio SIP trunk match what's set up in LiveKit. If needed, you can update the credentials using the LiveKit CLI. 2. Check Audio Codecs: Make sure the audio codecs (like G.711 or G.722) are compatible between Twilio and LiveKit to ensure smooth audio transmission. 3. Monitor Participant Status: Using the LiveKit CLI, you can look at participant attributes during the call. Keep an eye on
sip.callStatus
and
sip.callID
to confirm the call is active. 4. Test Audio Flow: Try using diagnostic commands to watch the connection process. For example, creating a SIP participant with the
--wait
flag can help you observe how the call is established. 5. Prevent Media Timeouts: To avoid disconnections, make sure there's a continuous audio flow by sending silence or test audio. 6. Validate Network Connectivity: It's important to confirm that all necessary media ports are open and accessible between Twilio and LiveKit. 7. Enable Detailed Logging: Using the
sip.callID
, you can trace logs which might help pinpoint any specific issues. If you find the problem is still there after these checks, please double-check your Twilio SIP trunk settings to ensure audio isn’t being suppressed on their end. I'm here to help if you want to go through any of these steps together or have any questions along the way. Sources: SIP troubleshooting guide | LiveKit Docs | test/lktest/livekit.go | cmd/lk/sip.go | packages/sip--um-actually/src/setup-twilio.ts
a
if all these details were wrong like sip trunk configuration.. my call wouldn't have been initiated at all on twilio
t
Thank you so much for clarifying that! Since the call is being initiated successfully, could you please help me by confirming a few details? This will really help us get to the bottom of the issue together: • Are you able to hear the participant's audio on any other device or endpoint? • Is the participant's audio track being published successfully in the LiveKit room? You can check this using the LiveKit CLI with the
room list-participants
command. • Have you noticed any specific error messages or logs that might point to problems with the audio stream? Gathering this information will guide us in understanding whether the issue is related to audio publishing, network connectivity, or something else in the setup. I’m here to help every step of the way!