Number Translation Configuration
To create a translation rule:
-
In Superuser mode, type
configure terminal and press Enter.
ORACLE# configure terminal
-
Type
session-router and press Enter to access the session router configuration elements.
ORACLE(configure)# session-router
-
Type
translation-rules
and press Enter. The system prompt changes to let you know that you can begin configuring individual parameters.
ORACLE(session-router)# translation-rules ORACLE(translation-rules)#
From this point, you can configure translation rules parameters. To view all translation rules parameters, enter a ? at the system prompt. The following is an example of what a translation rule configuration might look like. Parameters not described in this section are omitted below.
translation-rules id addplus1 type add add-string +1 add-index 0 delete-string delete-index 0
Translation Rules
Set the following parameters to configure a translation rule:
- ID—Set a descriptive ID name for this translation rule.
-
type—Set the type of translation rule you want to configure. The default value is
none. The valid values are:
-
add—Adds a character or string of characters to the address
-
delete—Deletes a character or string of characters from the address
-
replace—Replaces a character or string of characters within the address
-
none—Translation rule is disabled
-
- add-string—Enter the string to be added during address translation to the original address. The value in this field should always be a real value; i.e., this field should not be populated with at-signs (@) or dollar-signs ($). The default value is a blank string.
-
add-index—Enter the position, 0 being the left most position, where you want to add the string defined in the
add-string parameter. The default value is zero (0). The valid range is:
-
Minimum—0
-
Maximum—999999999
-
-
delete-string—Enter the string to be deleted from the original address during address translation. Unspecified characters are denoted by the at-sign symbol (@).
The @ character only works if the type parameter is set to delete. This parameter supports wildcard characters or digits only. For example, valid entries are: delete-string=@@@@@, or delete-string=123456. An invalid entry is delete-string=123@@@. When the type is set to replace, this value is used in conjunction with the add-string value. The value specified in the delete-string field is deleted and the value specified in the add-string field is inserted. If no value is specified in the delete-string parameter and the type field is set to replace, then nothing will be inserted into the address. The default value is a blank string.
-
delete-index—Enter the position, 0 being the left most spot, where you want to delete the string defined in the
delete-string parameter. This parameter is only used if the
delete-string parameter is set to one or more at-signs. The default value is zero (0). The valid range is:
-
Minimum—0
-
Maximum—999999999
-
Session Translation
To configure session translations:
-
Exit out of the translation rules element and enter the session translation element.
ORACLE(translation-rules)# exit ORACLE(session-router)# session-translation ORACLE(session-translation)#
From this point, you can configure the session translation element. To view all session translation parameters, enter a ? at the system prompt. The following is an example of what a session translation configuration might look like:
session-translation id lrules-out rules-calling rule1 rule2 rule3 rules-called addplus1
- ID—Set a descriptive ID name for this session translation.
-
rules-calling—Enter the rules calling in the order in which they should be applied. Multiple rules should be included in quotes and separated by spaces.
ORACLE(session-translation)# rules-calling "rule1 rule2 rule3"
- rules-called—Enter the rules called in the order in which they should be applied. Multiple rules should be included in quotes and separated by spaces.
Number Translation Application
To complete your number translation configuration, you must enter into a realm-config or session-agent element and assign session-translations there.
-
Navigate to the chosen element.
-
To move from the session-translation element to the session-agent element, exit out of the session translation element and enter the session agent element.
ORACLE(session-translation)# exit ORACLE(session-router)# session-agent ORACLE(session-agent)#
-
To move from the session-translation element to the realm-config element, exit from the session translation element to the configuration path.
ORACLE(session-translation)# exit ORACLE(session-router)# exit
Navigate to the ream-config element located in the media-manager path.
ORACLE(configure)# media-manager ORACLE(media-manager)# realm-config ORACLE(realm-config)#
-
-
In both
realm-config or
session agent elements, you must specify an
in-translationid and/or an
out-translationid in order to configure the number translation.
session-agent in-translationid out-translationid lrules-out realm-config in-translationid out-translationid lrules-out
Set the following parameters to configure a translation rule:
- in-translationid—Enter the configured session translation that you want to affect the incoming traffic in this parameter.
- out-translationid—Enter the configured session translation that you want to affect the outgoing traffic in this parameter.