Hello , what can be the reason here. livekit-sip-...
# ask-ai
m
Hello , what can be the reason here. livekit-sip-local-1 | 2025-08-28T183829.777Z INFO sip sip/inbound.go:782 Closing inbound call {"nodeID": "NE_jFYVFESspmyP", "callID": "SCL_s5GyxFSetxSP", "fromIP": "x.x.x.x", "toIP": "x.x.x.x:5062", "fromHost": "x.x.x.x", "fromUser": "9565284098", "toHost": "x.x.x,x", "toUser": "10003", "sipTag": "as6858654a", "sipCallID": "7c0b90834d5aaca6116db16657a31925@x.x.x.x:5060", "sipTrunk": "ST_iVLHrKNkFVZ2", "jitterBuf": false, "sipTrunk": "ST_iVLHrKNkFVZ2", "status": 486, "reason": "flood"}
t
Thanks for reaching out, Muhammad. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! The status code 486 with the reason "flood" in your LiveKit SIP logs means that an incoming SIP call was rejected because it looked like part of a flood of unauthorized or unpermitted calls. This usually happens when the SIP call doesn’t match any of the dispatch rules you’ve set up, so the call ends up being dropped. To fix this, you’ll want to set up a SIP Inbound Trunk in the LiveKit SIP service. This means specifying which sender addresses and phone numbers are allowed to make incoming calls. If your "allowed_addresses" list is empty, it’ll accept all inbound traffic, and if the "allowed_numbers" list is empty, calls from any phone number get through. Getting these settings right will help make sure your legitimate calls don’t get mistakenly flagged as a flood. Sources: livekit-protocol/src/livekit.rs | livekit/livekit_sip.pb.go | pkg/sip/inbound.go
m
lk sip inbound list Using url, api-key, api-secret from environment ┌─────────────────┬────────────────────────┬─────────┬──────────────────┬────────────────┬────────────────┬────────────┬─────────┬──────────┐ │ SipTrunkID │ Name │ Numbers │ AllowedAddresses │ AllowedNumbers │ Authentication │ Encryption │ Headers │ Metadata │ ├─────────────────┼────────────────────────┼─────────┼──────────────────┼────────────────┼────────────────┼────────────┼─────────┼──────────┤ │ ST_an2rsLVYkJiP │ Accounts Inbound Trunk │ 10004 │ 0.0.0.0/0 │ │ │ DISABLE │ │ │ │ ST_iVLHrKNkFVZ2 │ Cla Inbound Trunk │ 10003 │ 0.0.0.0/0 │ │ │ DISABLE │ │ │ └─────────────────┴────────────────────────┴─────────┴──────────────────┴────────────────┴────────────────┴────────────┴─────────┴──────────┘ lk sip dispatch list Using url, api-key, api-secret from environment ┌───────────────────┬────────────────────────┬─────────────────┬─────────────────────┬────────────────────────────┬─────┬────────────┬────────────────┐ │ SipDispatchRuleID │ Name │ SipTrunks │ Type │ RoomName │ Pin │ Attributes │ Agents │ ├───────────────────┼────────────────────────┼─────────────────┼─────────────────────┼────────────────────────────┼─────┼────────────┼────────────────┤ │ SDR_27MrbHJwuCDL │ Cla Dispatch Rule │ ST_iVLHrKNkFVZ2 │ Individual (Caller) │ cla_<caller>_<random> │ │ map[] │ cla-agent │ │ SDR_QQBJtBEwrbTS │ Accounts Dispatch Rule │ ST_an2rsLVYkJiP │ Individual (Caller) │ Accounts_<caller>_<random> │ │ map[] │ accountx-agent │ └───────────────────┴────────────────────────┴─────────────────┴─────────────────────┴────────────────────────────┴─────┴────────────┴────────────────┘
t
Hey there! The 486 status with the "flood" reason usually pops up because the incoming SIP call doesn’t quite line up with any of the SIP Inbound Trunk configurations. Looking at what you’ve shared: • Make sure the "To User" (that’s the destination number) in the SIP INVITE matches the numbers field in the right SIP Inbound Trunk. For example, calls to 10003 should match the trunk named "Cla Inbound Trunk". • Check that the source IP address of the incoming call is included in the allowed_addresses field. Right now, both trunks allow all IPs (0.0.0.0/0), so this shouldn’t be a problem unless there’s something extra going on elsewhere. If your trunk setup looks good, the next step is to confirm there’s a SIP Dispatch Rule routing the call to the right room. For example, the "Cla Dispatch Rule" should send calls from "Cla Inbound Trunk" to the room "cla_<caller>_<random>". Take a moment to double-check the incoming call’s "To User" and source IP against these settings. If everything seems spot on but you’re still running into trouble, just give me a shout—I’m here to help! Sources: pkg/sip/inbound.go | protobufs/livekit_sip.proto | pkg/service/ioservice_sip.go