Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script


Excerpt

This page describes how to create outgoing routing rules.

Table of Contents
maxLevel2

...

VoipNow can route calls based on the call destination and cost.

The Routing rules describe how a call is sent to destination. They are associated with charging plans. Without routing rules, calls cannot be routed to the destination.

...

Note

Only the Route through rule can be set as final.!

Route through

In this case, the call is directed through a particular channel.

...

The Block rule is final by definition, in the sense that, when the rule is matched, the other rules are no longer checked.

Example:

Image AddedImage Removed
Screenshot: Routing Rules Input Form Example

...

UI Expand
titleVideo Transcript

Hi and welcome to our series of VoipNow server configuration tutorials. In this video, you will learn how to set routing rules.

  1. Routing rule groups can be added from the Outgoing Routing area, in the Channel Management page. These groups determine how outgoing calls are routed outside the VoipNow system through the channels available. Without them, calls cannot be routed to destination.
  2. Using routing rules, you can also have all calls routed through the channel providing the lowest cost, by using the best cost algorithm.
  3. If you've gone through our previous videos, you should already have one or several SIP channels set up on your server. If you haven't, please go back and configure your channels; you will need them in the following configs.
  4. To start, add a rule group and give it a name. Then you can add routing rules. VoipNow lets you define four routing rule types, which are: Route through, Process target number, Portability check and Block. I will explain each, as well as show you how to use them.
  5. First, let's cover the Process target number rule. This type of rule can be used to perform complex operations on a number such as delete or insert digits, add a prefix and more.
  6. For example, for number format 40 in time interval “anytime”, we choose to delete the first two digits from the number.
  7. Then we set a Route Through rule, which gets calls directed through a particular channel, while also offering the complex operations available for Process target number rules. In this case we will route numbers with 40 through our channel of choice.
  8. In the following example, instead of choosing a particular channel, we pick the Best cost algorithm, also with the Route through rule. This will ensure that the channel which delivers the best cost for a given destination is always used.
  9. Finally, the Block rule type forbids the call to be initiated to the provided destination number. Here is how we set a rule to block all numbers with the pattern 3539.
  10. What’s important to know is that the rule's position in the group defines the order in which VoipNow matches the routing rules. The Block rule is final, which means that when the rule is matched, no other rules will be checked.

I hope you now have a better understanding on how to add routing rules. The next step is to learn how to create charging plans. To do that, please watch the video tutorial in the Setting a Charging Plan page.


4psarelated
NameRelated

...

topics

...


Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.