In this section:

Dial rules match incoming calls to a specific device. A rule is written with a number of explicit digits and/or patterns.

Understanding Dial Rules

A rule is written with a number of explicit digits and/or patterns. The patterns may match a range of digits. Each rule can have a number of digits to strip, and a string of digits to add, associated with it. If a rule has a number of digits to strip, this number of digits will be removed from the called number when there is a match. Likewise, a string of digits to add will be added to the dialed number when the rule matches.

Rules are used to forward and/or modify incoming and outgoing calls. There are 3 types of rules:

  • Inbound—From the server to the trunking device.
  • Outbound—From the trunking device to the server.
  • Redirect—From the local phone to the trunking device (without routing to the server).

Outbound rules can match against and/or modify either the calling or called number. Inbound and redirect rules operate on the called number only. Stripped and added digits always apply to the left-most digits of the DID.

When entering an Outbound rule on the Trunking Device page, the drop-down list offers an option “Any.” When this option is selected the rule is matched based on pattern only.

An inbound or redirect rule can be given priority. Any non-priority rule is preempted in favor of a priority call. A default rule cannot have a dial string for matching. There can be only one default rule. A default rule can only be inbound.

Configuring Rules

This section outlines how to configure rules.

To Configure Rules

  1. Choose VoIP > SIP > ALG.
  2. Scroll to Rules.

  3. Configure settings using the information in the following table as a guide.

    Rules Parameters

    ItemDescription

    Rules

    Configure rules for forwarding and/or modifying incoming and outgoing calls.

    Add a New Rule

    Add a new rule in the Add a rule window.

    ActionChoose Add a new rule from the Action drop-down list.
    Type

    Choose a rule type from the drop-down list:

    Inbound—From the softswitch via the voice system to the trunking device. Used to determine which trunking device to use for an inbound call.

    Outbound—From the trunking device via the voice system to the softswitch. Used to determine a dial string modification rule to use for calls from a specified trunking device.

    Redirect—From a local device directly to the trunking device. Used to directly connect a local device to a trunking device without sending the signaling to the softswitch first.

    An inbound or redirect rule can be given priority; non-priority rules are preempted in order to connect a priority call. A default rule cannot have a dial string for matching and there can be only one default rule, which can only be inbound.

    Each rule can have a number of digits to strip, and a string of digits to add. If a rule has a number of digits to strip, this number of digits is removed from the called number in case of a match. Likewise, a string of digits to add is added to the dialed number in case the rule matches.

    Mode

    Choose a mode from the Mode drop-down list:

    Both—Default when Survivability is on and the only option if Survivability is turned off. When a rule is configured in Both mode, and all other criteria match then this rule will be selected whether the EdgeMarc is in local or remote mode.

    Local Mode On—Allows you to configure a separate set of voice routing rules when the unit is operating in local mode. The rule for the EdgeMarc can be in Local Mode or Both mode.

    Local Mode Off—The rule for the EdgeMarc can be in Remote Mode or Both mode.

    Note: If multiple rules are configured in Both and Local Mode Off, the first matching rule will be selected when Survivability is turned on and the EdgeMarc is in Remote Mode. Similarly, if multiple rules are configured in Both and Local Mode On, the first matching rule will be selected when Survivability is turned on and The EdgeMarc is in Local Mode.

    Call Party

    Specifies either Called or Calling if the type is Outbound.

    Default

    Select the Default rule checkbox to specify the default match for any inbound call that was not able to find a destination.

    Note: A default rule cannot have a dial string for matching. There can be only one default rule. A default rule can only be inbound.

    Pattern match

    Enter a pattern to match a pattern to a call party. Refer to SIP Trunking Patterns  for supported trunking patterns and pattern examples.

    Strip digitsEnter the number of digits to strip from the beginning of the number.
    Add string

    Enter a dial string to prepend to the beginning of the number.

    Trunking device

    Choose a configured trunking device from the SIP Trunking Devices drop-down list.

    Note: Refer to Configure SIP Trunking Devices to create a list of devices.

  4. Click Commit to save your settings.

  5. Edit a rule in the Add a rule window:

    1. Choose Edit new rule from the Action drop-down list.

    2. Edit settings in the fields provided.

    3. Click Commit to save your settings.

  6. To delete rules in the Dial Rules table:

    1. Select checkboxes for the entries that you want to delete. Click All to choose all the entries or None to clear your selections.

    2. Click Delete.

    3. Click OK to confirm.

      Tip

      To use the default SIP proxy as a secondary target rule, go to the B2BUA Trunking Configuration page under Credentials and Registration. Choose VoIP > SIP > B2BUA and refer to Manage B2BUA Credentials and Registration.