Forums Read-only archive

Better Way To Create a Dial Plan

3 posts · Brekeke SIP Server Forum

skb007 Original post
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
Niloc
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.
skb007
Niloc,

Appreciate your response, it is really helpful.