10-09-2012 01:33 PM - edited 03-16-2019 01:36 PM
I am working on a problem with CID tranlation. I have the following translation rules in place.
voice translation-rule 5
rule 1 /^\+1\(.*\)/ /\1/
rule 2 /^\([0-9]\)\(.*\)/ /\1\2/
rule 3 /.........../ /1234567890/
rule 4 /........../ /1234567890/
rule 5 /........./ /1234567890/
rule 7 /^$/ /1234567890/
rule 8 /[^0-9]$/ /1234567890/
With this block I can successfully test it for 'anonymous' ,but it does not work for 'unknown' or 'private'. Any ideas what I'm missing?
RouterA#test voice translation-rule 5 anonymous
Matched with rule 5
Original number: anonymous Translated number: 1234567890
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
10-09-2012 02:40 PM
Are you using SIP? Then use SIP profiles, not translation-rules that are made for number, not strings.
10-10-2012 05:57 AM
We are using SIP outbound but PTSN inbound.
10-09-2012 10:21 PM
Try to add a rule to your translation rule
rule 9 /.*/ /1234567890/
Sent from Cisco Technical Support iPhone App
10-10-2012 06:00 AM
/.*/ would match all numbers including null
I don't want to change legitamate inbound numbers just the ones that wont show (private/unknown).
10-10-2012 08:26 AM
Actually it seems that if I add:
rule 7 /......./ /1234567890/
works, as there are 7 dots to match 'private' or 'unknown' or 'blocked'.
Now I just have to test it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide