Wildcards for Translation

The IMG 2020 utilizes wildcards to aid in the Digit Matching and Digit Translation process. Below is a table displaying the supported wildcards.

Wildcards

Description

P or p

Any digits represented by P in the matched string can be either a 0 or 1. For example, the string P5088623000 will match either 05088623000 or 15088623000.

N or n

Any digits represented by N in the matched string can be any number between 2 and 9. For example, the string 508NN2N000 will match 5088623000, 5087724000, or any number that begins with 508, followed by two digits that can be any number between 2 and 9, followed by the number 2, followed by a single digit between 2 and 9 and ending with 000.

X,Y,Z or x,y,z

Any digits represented by an X,Y,Z in the matched string can be any digit. These wild-cards are interchangeable. However, X is generally preferred unless specifying various parts of a number. For example, you can specify the string XXXYYY1234 to indicate that the first three digits can be any value, the next three digits can be any value and the remaining digits must be 1234. This is useful for translation purposes. For example, if you use the match string XXXYYY1234 and the translation string YYY&, the DPE strips the first three digits (XXX) from the digit string.

V or v

Any digits represented by a V will represent a Null String character.

&

The ampersand (&) specifies that all remaining digits can have any value. For example, the match string 508& will match any digit string that begins with 508 such as 5088623000, 5087783000, or 5081234. Typically the & is placed at the end of the matched string to indicate that all remaining digits can be of any value. However, the IMG 2020 supports matching strings that include one character following an & as in 508&#. This enables you to strip a terminating digit or character.

#

The pound (#) character is used to terminate a digit string.

*

The asterisk (*) character is used to trigger a service such as *70 to disable call waiting.  

Note: Internally, the IMG 2020 maps the asterisk () character to a value of hexadecimal E and the pound (#) character to hexadecimal F. This can result in improper digit processing if your digit strings contain hexadecimal E or F. Refer to the Digit 0x0a to 0x0f Support topic for more information.

$

The wildcard ($) character will add the complete incoming (D)ialed String, (O)riginating String, or (G)eneric String when performing a translation. For Example: An incoming call has a (D)ialed number parameter of 1234567890 and needs it to be to translated to a (G)eneric Number as 5551234567890. The Generic # Translation field would need to have an entry like the following: 555G$. See below for more information.

 $Wildcard Character

The wildcard ($) character adds the complete incoming (D)ialed, (O)riginating, or (G)eneric string when a translation is being performed. G for Generic Number, O for Originating Number, and D for Dialed Number, has to be specified when using the Dollar ($) wildcard character.

Example 1

  • A call comes into the IMG 2020 with an Originating Number specified as 6677889900. The Outgoing Generic Number will have 12345 with the Originating Number added to the end. The Generic Number Translation field within the Translation Entry will look like the following.

 

  • The Value of the outgoing Generic Address Parameter will be 123456677889900 

Example 2

  • A call comes into the IMG 2020 with an Originating Number specified as 334455 and the Generic Number specified as 667788. The Outgoing Dialed Number parameter should equal the concatenated Originating Number + Generic Number. The Dialed number coming into the IMG 2020 is 112233. The Translation entry will look like the following.

 

  • The Value of the outgoing Dialed Number Parameter will be 334455667788

$Wildcard Character - Additional Information

·         The syntax is $G for Generic Number, $D for Dialed Number, and $O for Originating number. The letter character is uppercase only.

·         The wildcard $ references the complete string of the Generic/Dialed/Originating strings. Referencing a partial part of any of those strings is not supported.

·         Table below displays what is supported and what restrictions there are.

Translation Entry Field

Supported (Will be accepted)

Not Supported. (Will be rejected)

Dialed # Translation

$O and $G

$D

Originating # Translation

$D and $G

$O

Generic # Translation

$O and $D

$G

Billing # Translation

$G, $O, and $D

 None

  • No duplicate $ Wildcards are accepted in any one field. Cannot have $D$D as any of the Translation field entries.

  • The Translation Wildcard is NOT accepted in the Info Digits Translation or Carrier Number translation fields.

Return to Documentation Home I Return to Sangoma Support