I am facing these issues: here is my configuration: STT Deepgram Nova 3 and Nova 2 phone call, LLM: OpenAI gpt-5.1, gpt-4.1 mini, TTS: RIME Arcana. We have a dynamic agent system. What I mean by a dynamic agent system. we can create as many agents as we need using the same AgentSession. Livekit Selfhosted over AWS. Using Twilio. All the agents are working perfectly over WebRTC. We have added UI web tester and that is working fine no glitches, chopping or anything related.
If webrtc sounds good but SIP has "Glitches, Crickly noise, chopping" I would start by looking at the PCAP and see what the jitter, loss and delta looks like.
What happend is that on aprill 25 i made changes in the agent_dyanmic flow and it worked for one day. today when i come back and make a call to my agent it again the issue even though i did not modify the code or any configuration. i am not sure why this behavior repeat again and again it is been a month or so that we are facing this issue
Yes, this is a fully self-hosted LiveKit setup (livekit, livekit-sip, livekit-agent and livekit-egress all running as Docker containers in NetworkMode=host on our AWS instance, with no LiveKit Cloud project), so the dashboard’s PCAP-download feature isn’t available — but tcpdump works fine on the host and we can capture SIP/RTP packets ourselves whenever needed. I haven’t captured PCAPs yet for either the web test_call.py or the real PSTN call, so I can’t compare them at the packet level — what I do have is the LiveKit-SIP call statistics for the PSTN call (mixer.restarts: 106, mixes_jump: 1434, mixes_zero: 717) versus the web call which never touches the SIP mixer at all, and that gap (rather than any PCAP diff) is what’s driving the choppiness.