Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Better Way To Create a Dial Plan
Author Message
skb007
Brekeke Guru


Joined: 05 Oct 2015
Posts: 152
Location: USA

PostPosted: Wed Nov 11, 2020 7:20 pm    Post subject: Better Way To Create a Dial Plan Reply with quote

1. Brekeke Product Name and Version:2.9 Adv Ver

2. Java version:1.8

3. OS type and the version:RHEL7

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

5. Your problem:

I have around 150-160 IP's to match for a singe dial plan.All the IP's are individual IP's which belong to different subnets, does not fall into any range. Is there any trick to use or is there any better way than the following:


Matching Patterns
$request = ^INVITE
$addr = ^1\.2\.3\.4$|^1\.2\.4\.5$|^4\.3\.2\.1$|^5\.6\.7\.8$|^6\.7\.8\.9$
To = sip:(.+)@
From = sip:(.+)@
Deploy Patterns
To = %1@4.4.4.4
From = %2@5.5.5.5
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Thu Nov 12, 2020 6:11 pm    Post subject: Reply with quote

Your rule will be like this if you use Alias
Matching Patterns
$request = ^INVITE
$alias.lookup($addr) = .+
To = sip:(.+)@
From = sip:(.+)@
Deploy Patterns
To = %1@4.4.4.4
From = %2@5.5.5.5

At [Aliases] setting, add IP address as each record, or import a CSV file which lists IP addresses.
Back to top
View user's profile
skb007
Brekeke Guru


Joined: 05 Oct 2015
Posts: 152
Location: USA

PostPosted: Wed Dec 16, 2020 4:06 pm    Post subject: Reply with quote

Niloc,

Appreciate your response, it is really helpful.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1