Managing Generic Switching Rules

Use

You use this procedure to configure generic switching rules. For example, this is the easiest way to bar calls to expensive service numbers in the entire system.

Defining switching rules is similar to those in the barring groups or locations, but the rule is not linked to any location or barring group.

During switching the numbers can be masked, for example the plus in the beginning of the outgoing international number can be changed to the local international call prefix.

Procedure

  1. On the System Configurator main screen, choose Call Switching > Generic Switching Rules.

  2. Choose Add New.

  3. Configure the settings according to the following table.

    Field

    Description

    Name

    Enter a descriptive name for the routing rule.

    Priority

    If two or more patterns are applicable for an outbound call, the system uses the rule with the highest priority. Enter an integer value.

    Call Type

    Choose the caller endpoint types that the rule applies to:

    • Softphones: All software phones in the system

    • Desk Phones: All IP desk phones

    • Softphones and Desk Phones

    • PSTN: External calls via a trunk

    • PSTN and Softphones

    • PSTN and Desk Phones

    • PSTN, Desk Phones and Softphones.

    Note: IP desk phones are not supported in Sinch Contact Pro cloud.

    Action

    Choose what happens when a call matches the pattern.

    • Call Barred

    • Call Allowed

    • Call Allowed with Editing: The call is allowed but modified as defined in the Edit Mask for Destination option.

    Pattern

    Define the mask that the destination number is compared to. A pattern does not modify the number in any way, as it is just used for matching. For example, if the pattern is ?999*, it matches 099912345 and 999987654. It does not match 088812345. You can use the following wildcards:

    • * Matches multiple characters.

    • ? Matches any single character.

    Edit Mask for Source Number

    Modify the source number. For example, if all calls to international numbers must always look the same, such as the assistant’s or switchboard’s number.

    See the table below for editing examples.

    Edit Mask for Destination

    Modify the destination number.

    See the table below for editing examples.

  4. Save your entries.

To edit the fields Edit Mask for Source Number and Edit Mask for Destination, see the examples in the table below:

Note:
  • Use asterisk (*) in the string after the number sign (#) and question mark (?), only. If the asterisk is before, or in the middle of number sign and question mark, it overrides them. See examples below.

  • Exact position for number sign (#) and question mark (?) is counted from the end of number, except when the string ends with an asterisk (*). In that case, the position is counted from the beginning.

Table 1. Editing Masks

String Character

Description

Asterisk (*)

Matches to multiple characters and copies them all.

Number sign (#)

Copies one digit in the exact position.

Question mark (?)

Removes one digit in the exact position.

To combine editing characters, see the following examples.

Table 2. Examples of Edit Mask

String

Explanation

Number 123456789 After Editing with Mask

010*

Adds 010 to the beginning of all numbers.

010123456789

*123

Adds 123 to the end of all numbers.

123456789123

010*123

Adds 010 to the beginning and 123 to the end of all numbers.

010123456789123

####

Copies the last four digits.

6789

####*

Copies the first four digits, and then copies all remaining digits.

Nothing happens, 123456789 remains 123456789.

????

Removes the last four digits and copies nothing.

All numbers become empty strings, do not use!

????*

Removes the first four digits, and then copies all remaining digits.

56789

####?????

Removes the last five digits and copies the first four digits.

1234

##??#*

Copies the first two digits, then removes the following two digits, copies the following one digit and copies all remaining digits.

1256789

987???*123

Adds 987 in front of the number, then removes the following three digits, then copies all remaining digits, and adds 123 to the end of the number.

987456789123