Author |
Message |
skb007 Brekeke Guru
Joined: 05 Oct 2015 Posts: 152
Location: USA
|
Posted: Wed Nov 11, 2020 7:20 pm Post subject: Better Way To Create a Dial Plan |
|
|
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 |
|
Niloc Brekeke Talented
Joined: 19 Sep 2017 Posts: 70
Location: NL
|
Posted: Thu Nov 12, 2020 6:11 pm Post subject: |
|
|
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 |
|
skb007 Brekeke Guru
Joined: 05 Oct 2015 Posts: 152
Location: USA
|
Posted: Wed Dec 16, 2020 4:06 pm Post subject: |
|
|
Niloc,
Appreciate your response, it is really helpful. |
|
Back to top |
|
|