Thanks — this helps. I’m responding to the SIP error you shared (SIP response 486 with "reason": "flood") and the sudden stop in the agent accepting calls.
Short answer: a SIP 486 “Busy Here” with a reason of "flood" means the SIP endpoint or proxy thinks it is being overwhelmed by too many requests (in your case likely INVITEs or re-INVITEs). That causes calls to be rejected and the agent to stop accepting further calls. To pinpoint and fix it I need a few details, and I’ll list the most likely causes and concrete steps to diagnose and resolve the issue.
Please provide:
• LiveKit server version and SIP gateway component/version you’re running.
• Whether you’re using LiveKit’s built-in SIP gateway or an external SIP proxy (and its config).
• Approximate call/transaction rate when the problem occurs (calls per second or concurrent calls).
• VM resources (CPU, RAM, NIC load) and whether resource usage spikes when the flood occurs.
• Relevant logs/snippets around the error (SIP trace or LiveKit/SIP gateway logs) — especially the lines immediately before the 486/flood message.
Likely causes and how to check/fix them
• High request rate (real flood or burst):
◦ Cause: Many INVITEs/re-INVITEs or re-registrations arrive in a short time; SIP proxy or SIP endpoint treats it as a flood and responds 486.
◦ Check: Review SIP logs/pcap to see how many requests per second arrive and which IPs send them.
◦ Fixes:
▪︎ Rate-limit or throttle upstream callers or the SIP proxy.
▪︎ Add or tune anti-flood settings in the SIP proxy/gateway so legitimate bursts aren’t blocked.
▪︎ If calls are legitimate, scale horizontally (add more SIP gateway workers) or increase VM capacity.
• Retransmissions / network instability causing duplicates:
◦ Cause: Packet loss or high latency causes retransmissions that look like a flood.
◦ Check: Capture a short pcap (tcpdump) on the VM NIC during the event and look for retransmissions or repeated INVITEs.
◦ Fixes:
▪︎ Fix network issues (packet loss, high jitter).
▪︎ Tune SIP retransmission timers or adjust NAT/ALGs on the network path.
• Misconfigured SIP proxy / aggressive anti-flood rules:
◦ Cause: Proxy or gateway rules classify normal activity as flood (e.g., low threshold).
◦ Check: Inspect the SIP proxy/gateway flood/DoS protection settings.
◦ Fixes:
▪︎ Raise thresholds for rate-limits temporarily while you tune.
▪︎ Whitelist trusted upstream SIP peers or internal components.
• Resource exhaustion on the VM / SIP gateway crash or thread starvation:
◦ Cause: CPU or memory saturated so the SIP agent stops processing calls; proxy responds 486.
◦ Check: Monitor CPU, memory, and process counts on the VM at the time of the error (top, vmstat).
◦ Fixes:
▪︎ Increase VM resources or optimize worker concurrency.
▪︎ Tune LiveKit/SIP gateway worker/thread counts to match available cores.
• Session handling bug or unexpected state in the agent:
◦ Cause: Agent enters a bad state and refuses new INVITEs.
◦ Check: Review gateway and LiveKit logs for errors/exceptions preceding the 486/flood message.
◦ Fixes:
▪︎ Restart the SIP gateway/agent to restore normal state while you investigate logs.
▪︎ If reproducible, gather detailed logs and we can triage further.
Immediate diagnostic steps you can run now
1. Capture SIP logs and a short packet capture around the time the 486 occurs:
◦ Save the SIP gateway logs and a pcap of the VM NIC for ~30–60 seconds when issue reproduces.
1. Check VM resource metrics at the same time:
◦ CPU, memory, disk I/O, and network interface stats.
1. Search logs for repeated INVITE or REGISTER entries from the same source IP right before the 486.
2. Temporarily restart the SIP gateway process to restore call handling while you gather log evidence.
If you can share the requested details and a short log/pcap excerpt, I’ll help interpret them and suggest exact config changes (rate limits, worker counts, or other tunings). If you prefer, tell me which SIP component you want to start with (LiveKit SIP gateway or an external proxy) and I’ll provide targeted commands and config examples.