I'm running into an issue where I am trying to do ...
# ask-ai
p
I'm running into an issue where I am trying to do inbound calls to my agent and I can't hear anything The livekit dashboard says that the agent connected succesfully however Aditionaly when trying to place outbound calls via dispatch it doesn't show any error initially but in the dashboard in overview shows agent dispatch error however how can I get more info for this as the dispatch isnt going through?
t
Thanks for reaching out, Sunny. 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 out! Could you please share a bit more about your setup and the challenges you're encountering? • Regarding the inbound call issue, are you working with any specific SDKs or APIs? Have you noticed any error messages or logs that pop up? • For the outbound dispatch error, it would be great if you could provide the exact error message or any related logs you have. With these details, we can get to the root of the problem and find the best solution together.
p
For inbound I can't see any erro rmessages, everything is hooked up to twilio For outbound thers no error messages, it just shows dispatch error in the agent session served overview in dashboard
t
Thanks for reaching out about the inbound call issue! Let’s work through a few steps together to get this sorted: • First, please double-check that the SIP trunk credentials (username and password) are set up correctly in both Twilio and LiveKit. Sometimes even a small mismatch can cause problems. • Next, take a look at the dispatch rule configuration to make sure the
agent_name
matches perfectly between the agent worker and the dispatch rule. • Also, confirm that the agent is joining the room properly and handling media tracks as expected. It’s a good idea to review your implementation to ensure the
SipClient
and room connection logic are being used correctly. • Lastly, check your network connection and consider enabling background noise cancellation and echo cancellation to help improve the audio quality. Now, about the outbound dispatch error, here are some helpful tips: • Make sure you have multiple agent instances running under the same
agent_name
to boost availability. • Take advantage of the LiveKit dashboard to monitor real-time metrics and track any errors related to agent sessions. • Verify that the agent is properly registered and dispatched with the correct configuration. Sometimes explicit dispatch requires API calls to manage agents effectively. • Don’t forget to review your logs for any errors or warnings during the dispatch process — they can offer valuable clues. If you’d like, I’m here to guide you step-by-step through any of these points or help with specific configurations. Just let me know! Sources: packages/sip--um-actually/README.md | pkg/sip/inbound.go | SIP troubleshooting guide | LiveKit Docs | Inbound calls with Twilio Voice | LiveKit Docs | README.md
p
okay i figure out connection issue, But still confused why I cant hear anything although participant is in the room as shown in livekit logs. These are the logs I can see in regards to the agent participant: "8 Oct 2025, 184225 — Participant left (ROOM_DELETED) Event payload 8 Oct 2025, 184225 TR_AM8iDAAMGHcCbW Track unpublished Event payload 8 Oct 2025, 184202 TR_AMB5DqLANnvfB4 Track subscribed Event payload 8 Oct 2025, 184202 TR_AM8iDAAMGHcCbW Track published Event payload 8 Oct 2025, 184202 TR_AMB5DqLANnvfB4 Track subscribe requested Event payload 8 Oct 2025, 184201 — Participant active Event payload 8 Oct 2025, 184201 — Participant joining" But I couldn't hear anything?
t
I'm here to help you get the audio working smoothly when participants are in the room. Let's try these steps together: • First, make sure your browser isn’t blocking audio playback. Browsers usually need a little nudge from user interaction to start audio. Try using
Room.startAudio()
inside an onclick or ontap event—this usually does the trick. • Next, check if the audio tracks are coming through on the subscriber’s side. Using components like
RoomAudioRenderer
or
AudioTrack
can help manage and play those audio streams properly. • If you're working with SIP integrations, enabling background noise cancellation and client-side echo cancellation can really improve the audio quality. • Sometimes you might see warnings like "silence detected on local audio track." These are often just false alarms caused by noise suppression, so if your audio works fine afterward, you can safely ignore them. • And for those using iOS Safari, a little extra care might be needed—manually triggering audio playback with
room.startAudio()
usually helps. Please feel free to reach out if you want me to walk you through any of these steps or if you have any other questions. I'm here to support you! Sources: src/room/Room.ts | example/lib/pages/room.dart | Screen sharing | LiveKit Docs | Understanding "silence detected on local audio track" warning | SIP troubleshooting guide | LiveKit Docs
p
its telephony
although same issue was hapening via websocket before
t
For telephony and WebSocket-related no audio issues, here are some helpful steps to guide you through: • First, please double-check that your SIP credentials and region pinning are set up correctly for telephony. Sometimes, authentication errors or regional compliance can prevent audio from coming through. For example, using region-based endpoints for inbound routing can make a big difference. • Next, make sure your STUN/TURN servers are properly configured to handle network traversal, especially if you're working with WebSocket connections. This is really important for networks that have stricter restrictions. • Also, browsers can sometimes block autoplaying audio. To work around this, try using
Room.startAudio()
inside a user-triggered event to manually start audio playback. • If you suspect device-related issues, you can use
MediaDeviceFailure.getFailure(error)
to pinpoint specific errors like
PermissionDenied
or
DeviceInUse
. Don’t forget to check
LocalParticipant.lastMicrophoneError
for any recent microphone errors as well. • Lastly, enabling logging in the client SDK can really help you keep an eye on WebSocket connectivity and telephony signaling. You can do this by setting the
logLevel
field in
ConnectOptions
to get detailed diagnostics. Please feel free to reach out if you’d like me to walk you through any of these steps or if you have any other questions. I’m here to help! Sources: src/connectionHelper/checks/websocket.ts | Understanding "silence detected on local audio track" warning | SIP troubleshooting guide | LiveKit Docs | Documentation/ImprovingCallReliability.md
p
how can I view logs for agent deployed to livekit cloud
which are done using the logger class
t
Hi there! To help you view logs for agents deployed to LiveKit Cloud, you can use the LiveKit CLI with these handy commands: • For runtime logs, simply run
lk agent logs --log-type deploy
. This will stream logs in real time from the latest running instance of your agent, so you can keep an eye on things as they happen. • If you're looking for build logs, try
lk agent logs --log-type build
. This shows the Docker build logs for the version of your agent that's currently deployed. Also, if you want to check out build logs for multiple versions of your agent, you can easily do that through the LiveKit Cloud dashboard. Just a quick heads-up: LiveKit Cloud doesn’t store runtime logs for every instance. So, if you want to keep logs from all your instances, it’s a great idea to forward them to an external logging service like Datadog, CloudWatch, Sentry, or New Relic. This way, you won’t miss a thing! Sources: Log collection | LiveKit Docs | cmd/lk/agent.go
I'm happy to help you view logs for agents deployed to LiveKit Cloud! Here are some easy ways to do that: • You can use the LiveKit CLI command
lk agent logs
to stream runtime logs from the latest running instance of your agent. If you want to see runtime logs specifically, just add the
--log-type deploy
flag. • For build logs, the same command works with
--log-type build
to show Docker build logs for the deployed agent version. • If you prefer a visual approach, you can also access build logs for multiple versions of your agent through the LiveKit Cloud dashboard. Just a quick note: LiveKit Cloud doesn't store runtime logs for every instance. If you want to capture logs from all instances, I recommend forwarding them to an external logging service like Datadog, CloudWatch, Sentry, or New Relic. You can do this by using the logger class in your agent's implementation. Please feel free to reach out if you'd like more help setting up logging or using the CLI—I'm here for you!