cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2970
Views
0
Helpful
5
Replies

Translate ANI of anonymous, unknown, or private

cpcrouter
Level 1
Level 1

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

5 Replies 5

paolo bevilacqua
Hall of Fame
Hall of Fame

Are you using SIP? Then use SIP profiles, not translation-rules that are made for number, not strings.

We are using SIP outbound but PTSN inbound.

Try to add a rule to your translation rule

rule 9 /.*/ /1234567890/

Sent from Cisco Technical Support iPhone App



Response Signature


/.*/ would match all numbers including null

I don't want to change legitamate inbound numbers just the ones that wont show (private/unknown).

cpcrouter
Level 1
Level 1

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.