# Edit DAS Rules

NOTE: The DAS Rules options are available in the MiCollab Audio, Web and Video Conferencing navigation pane only when you set Enable DAS Rules on the Systems Options page. When DAS rules are applied, Outgoing Prefix and Max Extension Length settings in System Options are not applicable.

DAS rules allow the product to dial outside numbers and internal PBX extensions. You can configure MiCollab Audio, Web and Video Conferencing with rules to handle a wide range of call routing and dial plan requirements. These rules can handle international dialing, PBX extension calling, and sophisticated SIP call processing.

DAS rules are a set of up to 20 UNIX regular expressions that are applied to dialed digits. The rules are applied the order in which they are listed in the DAS Rules table. The output of each rule is the input to the next rule. The result is used as the dialed digits that are processed through the MiCollab Audio, Web and Video Conferencing server call processing.

DAS rules are processed by the Perl Compatible Regular Expressions (PCRE) library distributed as libpcre. Details on this library are available from http://www.pcre.org/. MiCollab Audio, Web and Video Conferencing supports only the 'g' flag.

Click to view dialing plan configuration considerations.

Check for special or specific dialing plans for your company. For example, if you have access codes to connect to branch offices, remote locations, or international offices.

Check for blocked area codes (such as 800 or 900) and if so, what numbers that are blocked.

Check that all call processing programming has been completed, including Automatic Route Selection (ARS), dial rules, and other related information.

NOTE: Performing this procedure disconnects all active calls.

#### To configure dialing rule parameters:

1. From the MiCollab Audio, Web and Video Conferencing main page, click Advanced Settings in the navigation pane.

2. Click Edit DAS Rules to open the DAS Rules page.

3. Enter the specific rules you want the conferencing server to follow when processing dialed digits or SIP addresses. (Click to view an example.)

NOTE: When configuring MiCollab Audio, Web and Video Conferencing for use with a Mitel MiVoice Office 250, use 8 for the outside line dialing prefix. When configuring MiCollab Audio, Web and Video Conferencing for use with a Mitel 3300 system, use 9 (preferred) for the outside line dialing prefix.

Consider adding additional DAS rules to reflect your calling area. In this example, 602 is an area code in Phoenix, Arizona.

For additional explanation, click here.

1. - First Half: What is being searched for (between "s/" and the second "/").

2. 1. - ^ : Beginning of string to search.

      - \+1: Phone numbers that start with a "1"

      - (602.*): Grab any phone number that starts with a "602" and save it.

   - Second Half: The replacement (between second "/" and third "/")

3. 1. - 8: The first number dialed to get an outside line, typically is either 8 or 9.

      - \1: This is the "(602.*)" that was saved in the first half (i.e., the complete phone number.

      - @: literally, the "@" sign

      - (PRIMARYINTERNALIP): The variable for the main IP address configured in TCP/IP Settings.

The result is any phone number starting with 1602 will have the leading "1" stripped off, replacing it with an "8", then the number, then @, then the IP address.

Click here for additional descriptions for the DAS rules.

Character | Description
$ | End of the string
^ | Beginning of string
. (period) | Any character
* | 0 (zero) or more items. For example, a* means 0 or more number of a in the string.
? | 0 (zero) or one item.
+ | 1 or more number items
\1, \2, \3, ... | Equivalent to the corresponding set of parentheses matches
() | Used to group matching characters in a string that can be referred to later
[] | Used to define a range. Example: [0-9] matches any digit
{n} | Exactly n occurrences of the previous item Examples: a{4} matches aaaa, and .{4} matches any four characters
{n,} | At least n occurrences of the previous item Example: a{4,} matches aaaa or aaaaa or aaaaaa, etc.
{n,m} | At least n but not more than m occurrences of the previous item Example: a{4,5} matches only aaaa or aaaaa

4. Click Save, and then click Ok at the prompt.