Dial Plan Rule for "DID List"

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
AllstateTelecom
Posts: 9
Joined: Tue Aug 30, 2011 6:54 pm
Location: Jupiter, FL

Dial Plan Rule for "DID List"

Post by AllstateTelecom »

1. Brekeke Product Name and Version: SIP Server 3.7.7.8

2. Java version: 9.0.1

3. OS type and the version: Centos 7 (Kernel: 3.10.0-693.5.2.el7.x86_64)

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

5. Your problem:

I'm trying to figure out a way to create a single dial plan rule to affect multiple DIDs. I have a few carriers that I process 911 calls through and specific DID's are registered with specific carriers for 911 calls. Is there a way to make this work without creating a rule for every DID? Perhaps a way of creating a DID list (similar to an IP address list in a firewall), or maybe using an OR operator in the rule?

Thanks in advance,

Brian
ambrosio
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by ambrosio »

There are several ways.

You may find an example in the Tutorial.
http://www.brekeke.com/doc/sip/sip_tuto ... alplan.pdf

DialPlan accepts Regular Expression so OR operator is |.
https://en.wikipedia.org/wiki/Regular_expression

If DID are 11111, 22222 and 33333, you can define them at MatchingPattern as the following.

For example:
$getSIPuser(To) = ^11111$|^22222$|^33333$


If there are many DID numbers (more than 10..), Alias Database will be a solution.
http://wiki.brekeke.com/wiki/How-to-use-Alias-function

For example:
$alias.lookup($getSIPuser(To)) = DID
Post Reply