how do I set up an inbound sip participant rule to...
# ask-ai
m
how do I set up an inbound sip participant rule to allow any number but restrict connections from a certain subnet?
t
Thanks for reaching out, Arthur. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To set up an inbound SIP participant rule that allows any number but restricts connections from a certain subnet, you can follow these steps: 1. Create an inbound trunk using the
CreateSIPInboundTrunk
API. 2. Configure the
allowed_addresses
parameter to specify which IP addresses or CIDR blocks are allowed to connect. The
allowed_addresses
parameter accepts an array of strings, where each item can be either an individual IP address or a CIDR block notation. By specifying only the allowed subnets, you effectively restrict connections from other subnets. For example, when creating your inbound trunk, include the
allowed_addresses
parameter with the IP ranges you want to allow, while implicitly blocking others. Sources: SIP APIs | LiveKit Docs