livekit/sip:v1.1 sip inbound 테스트 중인데, Redis에 키가 없는...
# ask-ai
c
livekit/sip:v1.1 sip inbound 테스트 중인데, Redis에 키가 없는데도 flood로 자꾸 판단되는 이유는?
t
Thanks for reaching out, Luka(오정묵). I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I want to assure you that the flood detection in LiveKit SIP works independently of Redis keys. It’s built into the application itself, especially during authentication and when evaluating dispatch rules. So, even if there aren’t specific keys in Redis, the system can still identify and flag potential floods based on what’s happening in real time. To help get this sorted out, here are a few things to double-check: • Make sure your SIP trunks are set up with the right inbound addresses and authentication credentials. • Confirm that your dispatch rules are properly configured to manage incoming calls. • Verify that the source IP addresses of your test calls match the inbound addresses you’ve set in your SIP trunk configuration. • Ensure that any required authentication credentials are correctly set up and being used. If you’d like, I’m here to help you walk through the configuration or answer any other questions you might have. Just let me know! Sources: cmd/livekit-sip/main.go | pkg/service/ioservice_sip_test.go
c
docker image : livekit/sip:latest redis 에 저장된 sip_inbound_trunk 값 변경하는 방법은?
t
I understand you're looking to modify the
sip_inbound_trunk
value stored in Redis, and I'd love to guide you through the best way to do this! To keep everything running smoothly and safely, it's really best to use the LiveKit APIs instead of editing Redis directly. This helps protect your data, ensures everything stays compatible with future updates, and keeps things nice and safe. Here’s a friendly rundown of how you can update the SIP inbound trunk using the API: • You can use the
UpdateSIPInboundTrunk
API to replace the entire trunk configuration. • Or, if you just want to tweak specific parts like authentication credentials or the trunk name, the
UpdateSIPInboundTrunkFields
API is perfect for that. If you find yourself needing to modify Redis directly, just a quick heads-up: the
sip_inbound_trunk
key is stored as a Redis hash, where the trunk ID is the field name and the value is a serialized object. But since this method can risk data corruption and skips important validation, I’d recommend sticking with the API whenever possible. Please feel free to let me know if you’d like a hand with using the API or setting up the configurations—I’m here to help! Sources: SIP APIs | LiveKit Docs | SIP inbound trunk | LiveKit Docs | packages/livekit-server-sdk/src/SipClient.ts | livekit-api/livekit/api/sip_service.py | pkg/service/redisstore_sip_test.go
c
flood 되는 이유?
t
Flood detection in LiveKit SIP inbound calls is here to help keep the system safe and running smoothly by managing excessive SIP INVITE requests. Let me walk you through the main reasons why flood detection is important: • Preventing DoS Attacks: The system gently steps in to detect and drop too many requests, so it doesn’t get overwhelmed. • Resource Management: To keep everything running well, there’s a limit of 500 in-progress invites. When this number is reached, older invites are gracefully removed to free up memory. • Retry Storm Detection: Sometimes, misconfigured clients or SIP providers cause too many retry attempts. The system spots this and sends a friendly warning. • Authentication Challenges: It keeps an eye on both authenticated and non-authenticated invites to make sure the authentication process isn’t being misused. If you’re seeing flood detection in action, it might be because these limits have been reached or there’s a SIP client that needs a bit of tweaking. Please feel free to reach out—I’m here to help you troubleshoot and get everything working perfectly! Sources: pkg/sip/server.go