/mcpProfiles were added to Cisco IOS in 12.0(7)XR1. A translation-rule is applied to voice translation-profiles
which are then applied to a dial-peer or voice-port. Translation-rules contain a match input and a
modification output. Along with the match input on the number there is a match and modify input for the
ISDN plan and type. The combination of match number string, plan, and type is considered a match. This
means all match inputs defined must be true for the translation to take place.
Translation-rules have the ability to change Called, Calling, redirect-called, redirect-target, and callback-
number in ISDN, SIP, and H323 signaling protocols. Translation-rules match based on a top-down search,
so order of the rules is of utmost importance. If a match is found in a higher rule, the gateway immediately
stops searching and processes the translation. Translation rules cannot change non-numeric sip headers such
as testuser@10.10.10.10. For this manipulation, utilize a SIP profile.
Transition-rules can be used to block calls on Cisco Gateways.
Translation-Profile Selection Preference
Incoming voice translation-profile on the voice-port
1.
Incoming voice translation-profile on Trunk Group applied to Serial Interface
2.
Incoming voice translation-profile on the inbound dial-peer
3.
Incoming voice translation-profile defined via voice service pots
4.
Incoming voice translation-profile defined via global 'voip-incoming translation-profile'
5.
Outbound voice translation-profile defined via voice service pots
6.
Outbound voice translation-profile or translate-outgoing on the outbound dial-peer
7.
Outbound voice translation-profile on Trunk Group applied to Serial Interface
8.
Outbound voice translation-profile on the voice-port
9.
In addition to dial-peer regex and wilcards translation-rules have their own regex characters.
Character Definition
*
When used in translation-rules this is regex for 0 or more of the previous character.
To match a literal * use an escape character: *
Commonly used to escape sets in translation rule ( )
&
Ampersand is used to bring over anything matched in the initial match set for the modification
set
( )
Items wrapped in parenthesis are considered a set.
^
Defines the explicit start of a string.
Unlike dial-peers translation-rules do not define the start of the string.
This means defining a string without a ^ can possible match anything in the input string which
can lead to unwanted translations in the middle of a number.