Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Removing leading zeros from dialed number

Assumptions:

  • Dialed number: 0044285476159
  • The number to be sent to the Dialing Plan: 44285476159

...

If you want to apply both expressions, use the OR operator:

    00-> OR +->

Adding prefix to the dialed number

Assumption:

  • Dialed number: 44285476159
  • Desired number to be sent to the destination endpoint: 7723644285476159

...

If there is a cost tariff associated with the gateway, the dialed number can also be modified before the call is getting rated. This can be done by adding the TP: command in the Tariff rules field. The syntax is exactly the same as for the routing process except that instead of DN: the TP: is used. For example TP:123 will add 123 before the dialed number.

Replacing prefix with desired characters

Assumptions:

  • Dialed number: 0044285476159
  • Desired number to be sent to the Dialing Plan: $$44285476159
  • Desired number to be matched with client's tariff prefixes: 44285476159

...

This scenario is a compilation of both scenarios described above. The initial "00" has to be removed from the dialed number and replaced with "$$". This can be done by placing the entry 00->$$ in the Routing rules in the client's settings.
To send the proper number to the tariff the entry 00-> has to be placed in the Tariff rules.

Setting different termination gateway for different clients

Let's assume all calls from the client B should be routed through destination called Termination1 and all calls from client A, to the same country, through Termination2. For this purpose in the Routing rules field of the client A the prefix $ has to be added. The same field for the B will remain empty.

...

It is important that before sending a dialed number to the destination gateway the special prefix $ should be removed. This can be done using Routing rules in the Routing plan’s entry. Add there $-> .

Redirect all calls from client to Voipbox scenario

When working with the calling cards services the calls coming from a DID have to be sent to a PIN scenario on VoipBox. To be sure that any other number will not be sent from the DID carrier to Voipswitch and by mistake connected through Voipswitch, a special Routing plan’s entry should be created. The entry will be pointing to the PIN scenario dedicated for the calling card service. Next, in the provider’s wholesale client account set the Routing rules so that to every number sent from that provider a special prefix will be added matching the newly created routing entry. This will ensure that no matter what number is sent from the DID provider, it will always be connected to the VoipBox scenario.