wiki:Guides/OutgoingRewrite

Outgoing Rewrite

How it works

the outgoing rewrite occurs on the very last stage of the number rewriting, after you apply the Terminating account prefix. It allows to rewrite one or more destination patterns.

Examples

Example 1

The carrier accepts AZ , but to send UK, you need to add prefix 9.

To do:

  1. Terminating carrier prefix leave empty
  2. in the Outgoing Rewrite add:
    44=944
    

(this matches and replaces UK country code 44 by 449)

Example 2

The carrier accepts all destinations, but to send UK mobile, you need to send without country prefix, but use prefix 0

To do:

  1. Terminating carrier prefix leave empty
  2. in the Outgoing Rewrite add:
    447=07
    
    (this matches and replaces UK mobile prefix 447 by 07)

Example 3

The carrier A accepts all destinations with prefix 7892, but if you want to send United States, you must send prefix 44.

To do:

  1. in the Terminating Account Prefix field add prefix
    7892
    

. It will be applied to ALL destinations.

  1. in the Outgoing Rewrite add:
    78921=441
    
    (because the US code is 1, and you already added prefix 7892 in step 1. It will be taken off, and replaced by 44 plus US code 1)

Example 4

The carrier accepts AZ, but to send UK or France proper you need to add prefix 777

To do:

  1. Terminating carrier prefix leave empty
  2. in the Outgoing Rewrite add:
    44=77744,33=77733
    
    (comma separated list of 2 matches. In both cases country codes 44 and 33 are amended by 777)
Last modified 4 years ago Last modified on Aug 6, 2013, 12:33:04 PM