Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Translate calls

Can anyone help me out understanding how to translate incominbg and outgoing calls?


nor this:

has helped me understand it.

I have one weird problem.

I want users to dial 0 in front of any outgoing number.

Like so 0yyyyyyyy for national numbers (Denmark) and when dialing an international number 00046zzzzzzzzz (Sweden).

When testing the voice translation rules, everything seems OK, the router drops only the first zero. But when debugging ISDN, I see that it correcly drops 1 zero when dialing national, but it drops 2 zeros when dialing international, how come?


Calling Party Number i = 0x0080, 'xxxxxx43'

Plan:Unknown, Type:Unknown

Called Party Number i = 0xA0, 'yyyyyy'


Calling Party Number i = 0x0080, 'xxxxxx43'

Plan:Unknown, Type:Unknown

Called Party Number i = 0xA0, '046zzzzzzzzz'


This is my config:

voice translation-rule 1

rule 1 /^01/ /1/ type any national

rule 2 /^02/ /2/ type any national

rule 3 /^03/ /3/ type any national

rule 4 /^04/ /4/ type any national

rule 5 /^05/ /5/ type any national

rule 6 /^06/ /6/ type any national

rule 7 /^07/ /7/ type any national

rule 8 /^08/ /8/ type any national

rule 9 /^09/ /9/ type any national

rule 10 /^000/ /00/ type any international


voice translation-rule 2

rule 1 /^/ /0/


voice translation-profile ADD-N-STRIP-ZERO

translate calling 2


voice translation-profile STRIP-N-ADD-ZERO

translate called 1


interface BRI1/0

no ip address

no logging event link-status

isdn switch-type basic-net3

isdn point-to-point-setup

isdn incoming-voice voice


voice-port 1/0/0

compand-type a-law

cptone DK


dial-peer voice 2 pots

translation-profile incoming ADD-N-STRIP-ZERO

translation-profile outgoing STRIP-N-ADD-ZERO

preference 2

destination-pattern 0T

incoming called-number xxxxxx..


port 1/0/0



load 7912 CP7912080001SCCP051117A

max-ephones 12

max-dn 24

ip source-address port 2000

service dnis overlay

service dnis dir-lookup

timeouts interdigit 2

user-locale DK

network-locale DK

time-zone 23

time-format 24

date-format dd-mm-yy

dialplan-pattern 2 xxxxxx.. extension-length 2 extension-pattern ..

keepalive 15

max-conferences 6 gain -6


transfer-system full-consult

log table max-size 100

directory last-name-first

device-security-mode authenticated

create cnf-files version-stamp 7960 Apr 02 2006 09:03:55




ephone-dn 6 dual-line

number 43


ephone 2

device-security-mode none

keepalive 15

mac-address 0012.7F9B.83CA

type 7912

button 1:6



Re: Translate calls

your dial-peer 2 has 0T in it,

which will strip the 2nd 0, and rule 10 will strip the 1st


Re: Translate calls

So this command "destination-pattern 0T" has two funktions? It both matches outgoing calls to dial-peer 2 and removes the first 0?

So if I remove the "translation-profile outgoing STRIP-N-ADD-ZERO" form the dial-peer, everything should work as intended? Or is there another way?

I'll have a go at it later today.


Re: Translate calls

Hey hey, it works!


Here you go have 5 points.

CreatePlease to create content