1. Brekeke Product Name and version: SIP Server for Brekeke PBX, Version 2.1.6.6
2. Java version: 1.5.0_14
3. OS type and the version: Windows 2000
4. UA (phone), gateway or other hardware/software involved: None
5. Network pattern: http://www.brekeke-sip.com/bbs/network/pattern9.html
6. Your problem:
Can anyone help me to put a dial plan together:
I wish to block all IP's with the exception of a few inbound ITSP IP addresses. I have all the IP addresses and some are a complete "C" class i.e. - 111.111.111.0 to 111.111.111.255 - can anyone help with how to allow several different ranges and block everywhere else?
Regards - Colin
Dial plan to block all IP's with the exception of a few ITSP
Moderator: Brekeke Support Team
Hi
$addr variable in the Matching Patterns indicates the remote IP address.
So you can write a DialPlan rule as the following for example.
-------------------
[Matching Pattern:]
$request = ^INVITE
$addr = !^111.111.111.
[DeployPattern:]
$action = 400
-------------------
With the above DialPlan rule, if the remote IP address is NOT in the range 111.111.111.0-111.111.111.255, the SIP server returns error response "400" to the client.
It means the SIP Server will accept a packet which came from the IP address range 111.111.111.0-111.111.111.255.
$addr variable in the Matching Patterns indicates the remote IP address.
So you can write a DialPlan rule as the following for example.
-------------------
[Matching Pattern:]
$request = ^INVITE
$addr = !^111.111.111.
[DeployPattern:]
$action = 400
-------------------
With the above DialPlan rule, if the remote IP address is NOT in the range 111.111.111.0-111.111.111.255, the SIP server returns error response "400" to the client.
It means the SIP Server will accept a packet which came from the IP address range 111.111.111.0-111.111.111.255.