microscopic-dress-75199
09/25/2025, 12:52 PMtall-airline-16756
09/25/2025, 12:52 PMtall-airline-16756
09/25/2025, 12:52 PMmicroscopic-dress-75199
09/25/2025, 12:53 PMtall-airline-16756
09/25/2025, 12:54 PMauth_username and auth_password for your SIP trunk, which is a great first step to keep unauthorized access at bay. I understand how frustrating those spam calls can be, and I’m here to help you get this sorted out.
Let’s go through a few things together to make sure your configuration is as secure as possible:
• Double-check that your SIP trunk is linked to a dispatch rule. This connection is really important because without it, calls might not route correctly through your trunk.
• Consider adding some extra layers of protection like allowed_addresses to limit calls to trusted IP ranges, and allowed_numbers to whitelist specific caller numbers. These can really help reduce unwanted calls.
• Make sure the auth_username and auth_password exactly match what your SIP provider has set up on their end.
If you’d like, I’m more than happy to walk you through setting up dispatch rules or tightening your trunk’s security even further. Just let me know, and we’ll tackle it together!
Sources: SIP APIs | LiveKit Docs | livekit-protocol/livekit/protocol/sip.py | SIP outbound trunk | LiveKit Docs | lib/livekit/sip_service_client.rb | packages/sip--um-actually/src/setup-livekit.tsmicroscopic-dress-75199
09/25/2025, 12:57 PMtall-airline-16756
09/25/2025, 12:57 PMSIP_INBOUND_TRUNK_DELETED or SIP_DISPATCH_RULE_DELETED. These logs will show when and how these resources were removed. Please feel free to reach out if you’d like a hand accessing or understanding these logs—I’m here to help!
Sources: livekit-protocol/livekit/protocol/analytics.pyi | Creating SIP Inbound Trunks and Dispatch Rules with Python SDK | livekit/livekit_sip.twirp.go | lib/livekit/proto/livekit_sip_twirp.rb | SIP APIs | LiveKit Docsmicroscopic-dress-75199
09/25/2025, 12:59 PMtall-airline-16756
09/25/2025, 1:00 PMmicroscopic-dress-75199
09/25/2025, 1:03 PMtall-airline-16756
09/25/2025, 1:04 PMtrunk_ids field to link one or more trunk IDs. Here's a quick example:
{
"name": "inbound-dispatch-rule",
"trunkIds": [
"trunk-id-123"
]
}
This way, your dispatch rule will be connected to the trunk you specify.
2. Updating an Existing Dispatch Rule
If you want to update a rule you already have, you can easily modify the trunk_ids field using the API or CLI:
• CLI Command: lk sip dispatch update --id <dispatch-rule-id> --trunks "['trunk-id-1', 'trunk-id-2']"
• API Example: Use the UpdateSIPDispatchRule API to add or replace trunk IDs.
Please feel free to reach out if you'd like me to walk you through any specific commands or API calls tailored to your setup. I'm here to help!
Sources: src/setup-livekit.ts | livekit-api/livekit/api/sip_service.py | SIP dispatch rule | LiveKit Docs | protobufs/livekit_sip.proto | src/main/kotlin/io/livekit/server/SipServiceClient.ktmicroscopic-dress-75199
09/25/2025, 1:07 PMtall-airline-16756
09/25/2025, 1:07 PMallowed_numbers in inbound trunks to accept calls only from specific phone numbers.
• Using allowed_addresses to restrict traffic to known IP ranges.
• Setting up dispatch rules to route or block calls based on caller ID or destination number.
While your SIP provider might have some spam protection features, LiveKit empowers you to manage call filtering and routing directly through its API and configuration options. If you’d like, I’m more than happy to guide you through setting up these filters or rules to help reduce those unwanted spam calls. Just let me know!
Sources: livekit/livekit_sip.pb.go | SIP overview | LiveKit Docsmicroscopic-dress-75199
09/25/2025, 1:09 PMtall-airline-16756
09/25/2025, 1:09 PM