Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Translation rule

Please explain the usage of % in this tran. rule.

Verify the results as well.

Thanks

Router# test translation-rule

translation-rule 21

Rule 1 527.% 1408527 subscriber international

Rule 2 7.% 1408527 abbreviated international

Router# test translation-rule 21 45678 abbreviated

Router#

*Jan 19 16:39:14.578:The replace number 45614085278

Router#

2 REPLIES
New Member

Re: Translation rule

According to the following document:

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fvvfax_c/vvfpeers.htm#1248770

"Wildcard symbols such as the period (.), asterisk (*), percent sign (%), plus sign (+), and question mark (?) are not valid in translation rules. The router simply ignores these symbols when converting a number if they are used in a translation rule."

So, all you are doing is using Rule 2 to replace the 7 in 45678 with 1408527, giving you 45612085278 as a result.

New Member

Re: Translation rule

In this case % is replacing 7 from the new number/pattern and inserting the rest. Correct.

Can you give me another example using the % for digit manipulation.

Thanks

110
Views
0
Helpful
2
Replies