Matching Multiple IP Addresses on Incoming Calls

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
JRayfield
Posts: 147
Joined: Mon Dec 03, 2012 5:50 pm
Location: Springfield, MO

Matching Multiple IP Addresses on Incoming Calls

Post by JRayfield »

1. Brekeke Product Name and Version:
SIP Server

2. Java version:
1.8.0_161

3. OS type and the version:
Windows 7 Pro SP1

4. UA (phone), gateway or other hardware/software involved:
Not Sure

5. Your problem:

I'm connecting my Brekeke SIP Server (BSS) into a VoIP service providers system. They use IP address authentication and they use multiple IP addresses for multiple failover servers.

Everything works fine, except that I would like to limit the IP addresses in the Matching section of the Dial Plan, to just those of the service provider's servers. This would provide a bit more security.

I can use $addr for an IP address, but I need to have multiple ones for each possible incoming DID number. Is there a way to do something like this:

$addr = 1.1.1.1
or
$addr = 2.2.2.2
or
$addr = 3.3.3.3

where 1.1.1.1, etc, are the service providers public IP addresses?

John Rayfield, Jr.
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

"or" is '|' in Regular expression (https://en.wikipedia.org/wiki/Regular_expression)
so it will be

Code: Select all

$addr = ^1.1.1.1$|^2.2.2.2$|^3.3.3.3$

If these IP addresses are in the same range of IP address, you can use $addrRange
http://wiki.brekeke.com/wiki/DialPlan-M ... -addrRange

If these IP addresses have the same IP address prefix (eg: in the same subnet), you can use $addrPrefix
http://wiki.brekeke.com/wiki/DialPlan-M ... addrPrefix
JRayfield
Posts: 147
Joined: Mon Dec 03, 2012 5:50 pm
Location: Springfield, MO

Post by JRayfield »

Excellent. Worked perfect. Thanks!

John
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Post Reply