Translation Rule HELP
msturtev
Registered Users Posts: 4 ■□□□□□□□□□
Hello,
I am attempting to get my router to accept a translation rule, but for some reason (I cannot see why) it is not accepting the match string. I have altered it in every way I can think of, but to my eyes, the syntax seems sound.
DHCP_ROUTER(config-translate)#Rule 1 /^1919454\(....\)$/ /\1/
Here is the output rejection
From what I can tell, it doesn't like the input, but I don't see why.
I am attempting to get my router to accept a translation rule, but for some reason (I cannot see why) it is not accepting the match string. I have altered it in every way I can think of, but to my eyes, the syntax seems sound.
DHCP_ROUTER(config-translate)#Rule 1 /^1919454\(....\)$/ /\1/
DHCP_ROUTER(config-translate)#Rule 1 /^1919454\(....\)$/ /\1/
Here is the output rejection
DHCP_ROUTER(config-translate)#Rule 1 /^1919454\(....\)$/ /\1/
Incorrect format for Translation Match Pattern
regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$
Invalid match pattern string input /^1919454\(....\)$/
Incorrect format for Translation Match Pattern
regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$
Invalid match pattern string input /^1919454\(....\)$/
From what I can tell, it doesn't like the input, but I don't see why.
Comments
-
Legacy User Unregistered / Not Logged In Posts: 0 ■□□□□□□□□□I just dropped your rule into my test router and it works as is:
voice translation-rule 6
rule 1 /^1919454\(....\)$/ /\1/
R2811#test voice translation-rule 6 19194541234
Matched with rule 1
Original number: 19194541234 Translated number: 1234
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
R2811#
What hardware and IOS version are you running it on? -
msturtev Registered Users Posts: 4 ■□□□□□□□□□embarrassingly enough, I did not put it as a "voice translation rule" / I changed it, and of course, it works without issue. Thank you very much for the help.