Configuring translation rules
Use this procedure to create one of more translation rules to apply to the SIP-SIPI IWF components of a session-translation.
- In Superuser mode,
navigate to the
session-router and
press Enter.
ORACLE# configure terminal ORACLE(configure)#session-router ORACLE(session-router)#
- Type
translation-rules
and press Enter.
ORACLE(session-router)# translation-rules ORACLE(translation-rules)#
- 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
-
- Save your work.