What output would correspond to the test translation-rule command?

You have set up a complex dial plan using translation rules. The following translation rule has been configured.
What output would correspond to the test translation-rule command?
translation-rule 1 rule 0 ^0.. 215550210 rule 1 ^1.. 215550211 rule 2 ^2.. 215550212 rule 3 ^3.. 215550213 rule 4 ^4.. 215550214 rule 5 ^5.. 215550215
rule 6 ^6.. 215550216 rule 7 ^7.. 215550217 rule 8 ^8.. 215550218 rule 9 ^9.. 215550210

You have set up a complex dial plan using translation rules. The following translation rule has been configured.
What output would correspond to the test translation-rule command?
translation-rule 1 rule 0 ^0.. 215550210 rule 1 ^1.. 215550211 rule 2 ^2.. 215550212 rule 3 ^3.. 215550213 rule 4 ^4.. 215550214 rule 5 ^5.. 215550215
rule 6 ^6.. 215550216 rule 7 ^7.. 215550217 rule 8 ^8.. 215550218 rule 9 ^9.. 215550210

A.
test translation-rule 1512 The replaced number: 21555021512

B.
test translation-rule 1555 The replaced number: 55521555021

C.
test translation-rule 1617 The replaced number: 61721555021

D.
test translation-rule 1910 The replaced number: 21555021910

Explanation:

New Delhi(2-digitindialrange)
!— Only relevant “IOS translation rule” output is presented
! translation-rule 1
!– The “1” above is the tag for the set.
rule 0 ^0. 1011000 rule 1 ^1. 1011001 rule 2 ^2. 1011002 rule 3 ^3. 1011003 rule 4 ^4. 1011004 rule 5 ^5. 1011005 rule 6 ^6. 1011006 rule 7 ^7. 1011007 rule 8 ^8. 1011008 rule 9 ^9. 1011009 !
!– These rules replace the first digit of a 2-digit number with the corresponding !– translation. The router looks for a 2-digit number starting with a leading [0-9].
!– The caret, “^” ensures the match only happens at the start of the digit string !– rather than any occurrence in a digit string. This ensures the router makes the !– translation only for the leading digits. By default, if an explicit match is made !– on a digit (in this case the first digit) the router replaces it with the new !– digits. Therefore, to keep the original numbering, the matched digit needs to be !– replaced with the same digit at the end ofthe modified string. Once the call !– comes in, the called numberprependedwith 101100 followed by the !– original 2 digits.
! voice-port 1/0:1 translate called 1 cptoneIN compand-type a-law !
!– The translation rule is applied to the voice port where the !– call comes in to the router. When a call comes in from the !– telephone network towards the router, the called number !– is translated before it is matched on any dial peers.
! dial-peer voice 100 voip destination-pattern 101100..
session target ipv4:main site IP address ip precedence 5 dtmf-relay h245-alphanumeric !
!– TheVoIPdial peer needs to be configured to match on the new numbering plan This output was captured from theNewDelhirouter which shows the translation rules applied while dialing from theNewDelhisite.
NewDelhi- Output !– It is possible to confirm the translation rules are working:!!NewDelhi#test translation-rule 1 99!– Original called number is “99”The replaced number: 10110099!– Translated to 8 digits



Leave a Reply 0

Your email address will not be published. Required fields are marked *