<@U084APK40NS> i'm looking at the logs of the serv...
# ask-ai
h
@millions-hair-24956 i'm looking at the logs of the server, particularly interested in this component livekit.pub.pub.sfu. It shows upstream that seems to be the sip side of the call and downstream that is the agent. it means that upstream is from the sip to livekit or the other way around?
g
It seems likely that in the context of LiveKit, "upstream" refers to the data flow from the SIP side to LiveKit, while "downstream" refers to the data flow from LiveKit to the agent. This terminology is consistent with typical network communication where "upstream" indicates data being sent to a central server or service, and "downstream" indicates data being sent from the server to a client or endpoint. If you need more detailed information on how LiveKit handles SIP and agent connections, or if you have specific questions about the logs, please let me know. I can provide further insights based on the available data sources. Sources: - LiveKit SIP Integration 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
h
@millions-hair-24956 ok but in both sides there are packets flowing in both directions but on each log upstream and downstream seems to be just one number showing packets, delays, etc... shouldn't be values incoming and outbound for both sides of the transaction?
g
I'm not able to find any data sources to answer your question. You might want to specify which metrics or logs you are referring to and their context. If this doesn't help, please reach out to the Livekit support team for further assistance. 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
h
@millions-hair-24956 look at this log: "logger":"livekit.pub.pub.sfu","caller":"buffer/buffer.go:468","msg":"rtp stats","room":"client-1_629674980_wrs6MhMBTRQ2","roomID":"RM_Kw8jJRiZgJY5","participant":"sip_629674980","pID":"PA_D5YhWYepGniN","remote":false,"trackID":"TR_AMkKvtjvvdamoK","relayed":false,"mime":"audio/opus","layer":0,"ssrc":3577344963,"direction":"upstream","stats":{"startTime":1740768940.7994971,"endTime":1740769037.4544353,"elapsed":96.654938122,"packetsExpected":4828,"packetsExpectedRate":49.950888116093886,"packetsSeenPrimary":4828,"packetsSeenPrimaryRate":49.950888116093886,"bytes":527016,"bitrate":43620.40969576029,"packetsOutOfOrder":0,"packetsLost":0,"packetsLostRate":0,"packetLostPercentage" it is upstream so it is the flow between livekit and the sip side. In this flow there are packets in and out, from livekit to sip and coming back. But in the stats onyly says: bytes or packetsLost, how do i know if those are in one direction or in the other?
g
I'm not able to find any data sources to answer your question. You might want to clarify whether the log is specifically for packets sent from LiveKit to SIP or vice versa. If this doesn't help, please reach out to the Livekit support team for further assistance. 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.