cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
473
Views
0
Helpful
3
Replies

Correct translation rule however wrong digits in CLID

skenu0001
Level 1
Level 1

Hi,

One of my translation rule aligned with my Oubound CLID dial peer is:

voice translation-rule 2530
rule 1 /4/ /2530/
!

When i test it on the router:

router#test voice translation-rule 2530 48160
Matched with rule 1
Original number: 48160 Translated number: 25308160
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

router#test voice translation-rule 2530 48146
Matched with rule 1
Original number: 48146 Translated number: 25308146
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

however, when i make an actual call, for the number 48146, the CLID changes both 4 to 2530 so after country code, rest number is 25308125306.

Please help.

3 Replies 3

Adam Thompson
Level 4
Level 4

Try changing your voice translation rule to something like this:

voice translation-rule 2530
rule 1 /^4/ /2530/

The '^' forces the rule to only be applied if the 4 is at the beginning of the dialed string. 

Thanks
Adam

hi Adam,

Thanks for taking out time to reply to my thread, however, '^' will force the rule to apply replacement string on all occurrences of 4. 

Here is the document which verifies this:

http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html

I got the resolution. I was already sending the correct mask via CUCM so any single occurrence of 4 was 1st time for router.

Not sure where you got your conclusion on how ^ works from this doc. ^ definitely makes the regex match only when the string start with specific pattern. So /^4/ would only match any string that starts with 4.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: