Sunteți pe pagina 1din 19

Voice Translation Rules in C isco I O S G atew ay s

To b e su ccessf u l i n co n f i g u r i n g a v o i ce t r a n sl a t i o n r u l e i n a C i sco IO S g a t ew a y, yo u n eed t o b e f a m i l i a r w i t h


t h r ee st ep s. Th e f i r st st ep i s t o co n f i g u r e a v o i ce t r a n sl a t i o n r u l e. Th e seco n d st ep i s t o co n f i g u r e a v o i ce
t r a n sl a t i o n p r o f i l e a n d t o a sso ci a t e a v o i ce t r a n sl a t i o n r u l e w i t h t h e v o i ce t r a n sl a t i o n p r o f i l e. Th e t h i r d st ep i s
t o a p p l y t h e v o i ce t r a n sl a t i o n p r o f i l e t o a v o i ce p o r t o r a d i a l p eer .

Step 1: C o n f i g u r e th e In d i v i d u a l Ru l es

Th e f i r st co m m a n d yo u w i l l u se i s t h e v o ic e t r a n s l a t io n -r u l e number co m m a n d in g lo b a l co n f i g u r a t i o n
m o d e, w h i ch w ill m a t ch a n d r ep l a ce d i g i t s. Use t h i s co m m a n d t o d ef i n e t h er u let h a t w i l l b e a sso ci a t ed w i t h
a v o i ce t r a n sl a tio n p r o f i l e. Th e n u m b er i s a u n i q u e i d en t i f i er t h a t i s u sed t o a sso ci a t e a set o f t r a n sl a t i o n
r u l es w i t h a t r a n sl a t i o n p r o f i l e. H er e i s a n ex a m p l e o f t h e u se o f t h e v o ic e t r a n s l a t io n -r u l e co m m a n d .

Router(config)#voice translation-ru le 1

R ef er t o Ta b l e 1 f o r t h e o p t i o n s a sso ci a t ed w i t h t h e v o ic e t r a n s l a t io n -r u l e co m m a n d .

T a b le 1

Sy n t a x De s c r ip t io n
number N u m b er t h a t i d en t i f i es t h e t r a n sl a t i o n r u l e.
R a n g e i s f r o m 1 t o 2 14748 3 6 47.

S ev er a l r u l es ca n b e g r o u p ed t o g et h er i n t o a si n g l e t r a n sl a t i o n r u l e. Th e p r eced en ce p o r t i o n o f t h e
co m m a n d set s t h e p r i o r i t y o f t h e t r a n sl a t i o n r u l e. Th e p r eced en ce v a l u e o f ea ch r u l e ca n b e u sed in a
d i f f er en t o r d er f r o m t h a t i n w h i ch t h e r u l es w er e t yp ed i n t o t h e set . Th e p r eced en ce v a l u e o f ea ch r u le
sp eci f i es t h e p r i o r i t y o r d er i n w h i ch t h e r u l es a r e t o b e u sed . F o r ex a m p l e, r u l e 3 m a y b e en t er ed b ef o r e
r u l e 1, b u t t h e so f t w a r e u ses r u l e 1 b ef o r e r u l e 3 .

A t r a n sl a t i o n r u l e ca n co n t a i n u p t o 15 r u l es. Al l ca l l s t h a t r ef er t o t h i s t r a n sl a t i o n r u l e a r e t r a n sl a t ed a g a i n st
t h i s set o f r u l es. A g o o d w a y t o ch eck h o w t h e t r a n sl a t i o n r u l es a r e m a t ch ed i s t o w r i t e a v o i ce t r a n sl a t i o n
r u l e w i t h m u l t i p l e r u l es, ea ch w i t h a d i f f er en t m a t ch a n d r ep l a cem en t st r i n g . W h a t yo u w i l l f i n d i s t h a t i f t h e
d i a l ed st r i n g m a t ch es a v o i ce t r a n sl a t i o n r u l e w i t h m u l t i p l e r u l es, t h e st r i n g w i l l sea r ch t h e r u l es u n t i l i t f i n d s
t h e f i r st m a t ch a n d st o p s. Th en u se t h e t e s t v o ic e t r a n s l a t io n -r u l e number co m m a n d a n d a d i a l ed st r i n g .
Th e o u t p u t f r o m t h e t est co m m a n d a n d t h e d eb u g w i l l sh o w yo u w h i ch o f t h e r u l es w er e m a t ch ed a n d w i l l
p r o v i d e d et a i l s o n w h a t w a s m a t ch ed a n d w h a t w a s r ep l a ced . If t h e d i a l ed st r i n g f a i l s t o m a t ch a n y o f t h e
r u l es i n a v o i ce t r a n sl a t i o n r u l e, a m essa g e sa yi n g “D i d n ’ t m a t ch w i t h a n y o f r u l es” w i l l b e r et u r n ed . Th er e
a r e n o d ef a u l t v a l u es w h en yo u co n f i g u r e t h e r u l e.

H er e i s a n ex a m p l e o f t h e u se o f t h e r u l e co m m a n d a n d so m e o f t h e a sso ci a t ed o p t i o n s:

Router(cfg-tra ns l a tion-rul e)#ru le 1 / 1 2 3 4 / / 5 6 7 8 / p l a n na tiona l na tiona l ty p e


unk now n is d n

1 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
R ef er t o Ta b l e 2 f o r t h e o p t i o n s a sso ci a t ed w i t h t h e r u l e co m m a n d .

T a b le 2

Sy n t a x De s c r ip t io n
p rec ed enc e Th i s v a l u e set s t h e p r i o r i t y o f t h e
t r a n sl a t i o n r u l e. Th e r a n g e i s f r o m 1 t o 15 .
| ma t c h –p a t t ern | Th i s i s t h e f o r m a t o f a m a t ch i n g p a t t er n .
Th e “/” i s u sed t o m a r k t h e st a r t a n d en d o f
t h e ch a r a ct er st r i n g yo u w a n t t o m a t ch .
| rep l a c e-p a t t ern | N o t i ce t h a t t h i s i s r ea l l y t h e sa m e
co m m a n d syn t a x , b u t h er e yo u w i l l cr ea t e
a st r i n g o f ch a r a ct er s t h a t w i l l r ep l a ce w h a t
w a s m a t ch ed i n t h e m a t ch i n g p a t t er n .
W i l d c a rd s a re no t p ermi t t ed i n t h e
rep l a c ement s t ri ng , bec a us e t h ey a re i n
t h e ma t c h s t ri ng .
t y p e ma t c h -t y p e rep l a c e-t y p e Th i s i s a n o p t i o n a l su b set o f t h e r u l e
co m m a n d t h a t a l l o w s t h e n u m b er i n g m a t ch
t o b e a s f o l l o w s:

• a b b r e v ia t e d —Ab b r ev i a t ed
r ep r esen t a t i o n o f t h e co m p l et e n u m b er a s
su p p o r t ed b y t h i s n et w o r k .

• a n y —An y t yp e o f ca l l ed n u m b er .

• in t e r n a t io n a l —N u m b er ca l l ed t o r ea ch a
su b scr i b er i n a n o t h er co u n t r y.

• n a t io n a l —N u m b er ca l l ed t o r ea ch a
su b scr i b er i n t h e sa m e co u n t r y, b u t o u t si d e
t h e l o ca l n et w o r k .

• n e t w o r k —Ad m i n i st r a t i v e o r ser v i ce
n u m b er sp eci f i c t o t h e ser v i n g n et w o r k .

• r e s e r v e d —R eser v ed f o r ex t en si o n .

• s u b s c r ib e r —N u m b er ca l l ed t o r ea ch a
su b scr i b er i n t h e sa m e l o ca l n et w o r k .

• u n k n o w n —N u m b er o f a t yp e t h a t i s
u n k n o w n b y t h e n et w o r k .

V a lid v a l u es f o r t h e rep l a c e-t y p e a r g u m en t


a reth e sa m e a s i n t h e p r eced i n g l i st
ex cep t f o r “a n y,” w h i ch i s n o t v a l i d f o r t h i s
t yp e o f a r g u m en t .

2 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
p l a n ma t c h -t y p e rep l a c e-t y p e (O p t i o n a l ) N u m b er i n g p l a n o f t h e ca l l . V a l i d
v a l u es f o r t h e ma t c h -t y p e a r g u m en t a r e a s
f o l l o w s:

• a n y —An y t yp e o f d i a l ed n u m b er .

•d a ta

•e r m e s

• is d n

• n a t io n a l —N u m b er ca l l ed t o r ea ch a
su b scr i b er i n t h e sa m e co u n t r y, b u t o u t si d e
t h e l o ca l n et w o r k .

• p r iv a t e

• r e s e r v e d —R eser v ed f o r ex t en si o n .

•te le x

• u n k n o w n —N u m b er o f a t yp e t h a t i s
u n k n o w n b y t h e n et w o r k .

V a lid v a l u es f o r t h e rep l a c e-t y p e a r g u m en t


a reth e sa m e a s i n t h e p r eced i n g l i st
ex cep t f o r “a n y,” w h i ch i s n o t v a l i d f o r t h i s
t yp e o f a r g u m en t .

M a t ch a n d r ep l a cem en t st r i n g s u se r eg u l a r ex p r essi o n s t o m a t ch a n d r ep l a ce d i g i t s. In t h e p r eced i n g


ex a m p l e, r u l e 1 h a s si m p l e m a t ch a n d r ep l a cem en t st r i n g s. Th ese st r i n g s ca n b eco m e q u i t e co m p l ex , a n d
t h e u se o f r eg u l a r ex p r essi o n s ca n b e co n f u si n g .

Th er e a r e so m e f o u n d a t i o n a l r u l es t h a t ca n h el p yo u u n d er st a n d h o w t o co n f i g u r e a v o i ce t r a n sl a t i o n r u l e
u si n g t h e v o i ce t r a n sl a t i o n r u l e o p er a t o r s:

• Y o u b eg i n a n d en d a n y m a t ch o r r ep l a cem en t st r i n g w i t h t h e “/” o p er a t o r .

• A m a t ch st r i n g ca n b e m a d e u p o f ex p l i ci t l y m a t ch ed d i g i t s a n d w i l d ca r d s. W i l d ca r d s a r e a l l o w ed
o n l y i n t h e m a t ch st r i n g .

• If yo u w a n t a m a t ch st r i n g t o m a t ch f r o m t h e b eg i n n i n g o f a st r i n g o f d i g i t s, t h e ca r et (^) i s t h e f i r st
o p er a t o r i n t h e m a t ch st r i n g .

• If yo u w a n t t o m a t ch f r o m t h e en d o f a m a t ch st r i n g , t h e d o l l a r si g n ($) i s t h e f i r st ch a r a ct er .

3 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
• Th e sl a sh (\) r u l e o p er a t o r d el i m i t s t h e n ex t ch a r a ct er i n t h e st r i n g . F o r ex a m p l e, i n t h e m a t ch st r i n g
/^3 \(… \)/, t h e f i r st “\” r u l e o p er a t o r t el l s t h e r o u t er t o n o t m a t ch o r r ep l a ce t h e n ex t ch a r a ct er , w h i ch i s
t h e “( “. Th e seco n d “\” a l so t el l s t h e r o u t er t o n o t m a t ch o r r ep l a ce t h e n ex t ch a r a ct er , w h i ch i s t h e
“)”.

• If yo u w a n t t o m a t ch a g r o u p o f w i l d ca r d s o r ex p l i ci t d i g i t s a n d n o t ch a n g e t h em , yo u ca n cr ea t e a
set . F o r ex a m p l e, t h e m a t ch st r i n g /^3 \(… \)/ m a t ch es a n y d i a l ed st r i n g t h a t b eg i n s w i t h 3 . Th e (… \)
cr ea t es t h e f i r st set w h er e a n y o f t h e n ex t t h r ee d i a l a b l e d i g itsa r e m a t ch ed . In a n o t h er ex a m p l e, t h e
r ep l a cem en t st r i n g /4\1/ w i l l r ep l a ce a n y ex p l i ci t l y m a t ch ed d ig it w i t h a 4, a n d t h e “\” w i l l ca u se t h e
r o u t er t o v i ew t h e 1 a s a co n t r o l ch a r a ct er a n d w i l l ca u se t h e co n t en t s o f t h e f i r st set t o b e p u l l ed
a cr o ss t o t h e r ep l a cem en t st r i n g . Th e co m p l et e r u l e w o u l d lo o k l i k e t h i s: r u l e 1 /^3 \(… \)/ /4\1/

• An y d i g i t s t h a t a r e p a r t o f a m a t ch st r i n g a n d a r e n o t ex p l i ci t l y m a t ch ed b y t h e m a t ch st r i n g a r e
ca r r i ed a cr o ss t o t h e r ep l a cem en t st r i n g u n ch a n g ed .

Ta b l e 3 l i st s a n d d escr i b es t h e i n d i v i d u a l o p er a t o r s t h a t yo u ca n u se i n a v o i ce t r a n sl a t i o n r u l e.

T a b le 3

V o ic e T r a n s l a t io n Ru l e Op e r a t o r s De s c r ip t io n
^ M a t ch es t h e ex p r essi o n a t t h e st a r t o f t h e
l i n e.
$ M a t ch es t h e ex p r essi o n a t t h e en d o f t h e
l i n e.
/ D el i m i t er t h a t m a r k s t h e st a r t a n d en d o f
b o t h t h e m a t ch i n g a n d r ep l a cem en t
st r i n g s.
\ E sca p es t h e m ea n i n g o f t h e n ex t
ch a r a ct er .
- In d i ca t es a r a n g e w h en n o t i n t h e f i r st o r
l a st p o si t i o n . Th i s i s t yp i ca l l y u sed w i t h t h e
[ a n d ] t o i n d i ca t e a r a n g e.
[lis t] M a t ch es a si n g l e ch a r a ct er sp eci f i ed i n a
l i st .
[ ^l i s t ] D o es n o t m a t ch a si n g l e ch a r a ct er
sp eci f i ed i n a l i st .
. M a t ch es a n y si n g l e ch a r a ct er .
* R ep ea t s t h e p r ev i o u s r eg u l a r ex p r essi o n
z er o o r m o r e t i m es.
+ R ep ea t s t h e p r ev i o u s r eg u l a r ex p r essi o n
o n e o r m o r e t i m es.
? R ep ea t s t h e p r ev i o u s r eg u l a r ex p r essi o n
z er o o r o n e o ccu r r en ce o f t h e p r ev i o u s
ex p r essi o n . (Use C t r l -V ? t o en t er i n IO S .)
( ) G r o u p s d i g i t s i n t o set s.
& B r i n g s a l l t h e m a t ch ed d i g i t s i n t o t h e
r ep l a cem en t st r i n g .

4 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Exa m pl es o f Reg u l a r Expr es s i o n Us a g e i n Vo i c e Tr a n s l a ti o n Ru l es

Ex a m p l e 1 : Ma t c h in g t h e N U L L St r in g

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / ^ $ / / /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^$/ / / N UL L N UL L

Y o u f i r st n eed t o u n d er st a n d w h a t t h e N UL L st r i n g i s b ef o r e yo u ca n u n d er st a n d w h a t t h i s r u l e i s d o i n g . A
N UL L st r i n g i s a n em p t y set . It i s n o t a st r i n g t h a t m a t ch es n o t h i n g ; i t i s a st r i n g t h a t m a t ch es a n em p t y
st r i n g o f d i g i t s. F o r ex a m p l e, yo u m a y n o t r ecei v e ca l l er ID f r o m t h e p u b l i c sw i t ch ed t el ep h o n e n et w o r k
(P S TN ). Th e N UL L m a t ch st r i n g w o u l d m a t ch t h e em p t y ca l l er ID . In t h i s ex a m p l e t h e m a t ch st r i n g i s a
N UL L st r i n g a n d t h e r ep l a cem en t st r i n g w i l l ca r r y a cr o ss w h a t ev er i s m a t ch ed i n t h e m a t ch st r i n g . Th e
m a t ch st r i n g st a r t s w i t h t h e “/”. S i n ce yo u w a n t t o cr ea t e a N UL L m a t ch st r i n g , t h e n ex t o p er a t o r “^”b eg i n s
m a t ch i n g f r o m t h e b eg i n n i n g o f t h e st r i n g . Th e n ex t ch a r a ct er i s t h e “$,” w h i ch b eg i n s m a t ch i n g f r o m t h e en d
o f t h e st r i n g . Th i s i s f o l l o w ed b y t h e “/”, w h i ch en d s t h e m a t ch st r i n g . Th i s m a t ch st r i n g w i l l b e em p t y.

N o w l o o k a t t h e r ep l a cem en t st r i n g . It st a r t s w i t h t h e “/” a n d i s f o l l o w ed b y a sp a ce a n d t h en a n o t h er “/”.


Th er e a r e n o ch a r a ct er s i n t h e r ep l a cem en t st r i n g , so i t w i l l r ep l a ce w i t h t h e co n t en t s o f t h e m a t ch st r i n g ,
w h i ch i s em p t y.

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 7 7 0 1 2 3 4


7 7 0 1 2 3 4 D id n’ t m a tch w ith a ny of rul es

Ex a m p l e 2 : Ma t c h in g t h e N U L L St r in g a n d Re p l a c in g w it h Ot h e r Dig it s

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / ^ $ / / 2 0 0 1 /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^$/ / 2 0 0 1/ N UL L 2 0 0 1

In t h i s ex a m p l e, yo u a r e co n t i n u i n g t o m a t ch t h e N UL L st r i n g . Y o u m a y h a v e a si t u a t i o n w h er e yo u a r e n o t
r ecei v i n g ca l l er ID f r o m t h e P S TN o r yo u m a y h a v e a n a l o g l i n es t h a t d o n o t p r o v i d e D N IS . Y o u w o u l d p r ef er
h a v i n g t h ese ca l l s h a n d l ed b y a n a t t en d a n t r a t h er t h a n m a t ch i n g t h e d ef a u l t d i a l p eer . In t h e p r eced i n g
ex a m p l e, yo u m a t ch o n t h e N UL L st r i n g , w h i ch m ea n s yo u m a t ch o n t h e em p t y d i g i t f i el d t h a t t h e P S TN
m a y b e sen d i n g yo u f o r ca l l er ID o r a n em p t y D N IS f i el d o n a n a n a l o g ci r cu i t . Y o u t h en r ep l a ce t h e em p t y
m a t ch st r i n g w i t h t h e d i g i t s f o r t h e i n t er n a l a t t en d a n t . In t h i s ex a m p l e, t h e i n t er n a l a t t en d a n t i s l o ca t ed a t
ex t en si o n 2 0 0 1. Af t er t h e r ep l a cem en t i s m a d e, a r ecu r si v e l o o k u p o f t h e n ew d i a l ed st r i n g i s m a d e o f t h e
i n t er n a l d i a l p eer s t o a t t em p t t o m a t ch t h e ex t en si o n w i t h 2 0 0 1. If t h er e i s a m a t ch , t h e ca l l i s sen t t o t h e
a p p r o p r i a t e ex t en si o n .

5 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Ex a m p l e 3 : Re p l a c in g a Ma t c h St r in g w it h t h e A n y St r in g

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / ^ . $ / / /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^ . $/ / / 9 n o th in g

Th e m a t ch st r i n g i s sl i g h t l y d i f f er en t ; i t n o w i n cl u d es t h e “.” (p er i o d ). Th e “.”ca u ses a n y si n g l e ch a r a ct er t o


b e m a t ch ed . S i n ce t h e f i r st ch a r a ct er i n t h e m a t ch st r i n g i s t h e “^,” yo u m a t ch t h e 9 i n t h e d i a l ed st r i n g . Th e
r ep l a cem en t st r i n g i s a g a i n “/” f o l l o w ed b y a sp a ce a n d t h en a n o t h er “/”. Th i s ca u ses t h e r ep l a cem en t st r i n g
t o r ep l a ce a n y d i g i t s t h a t w er e n o t ex p l i ci t l y m a t ch ed b y t h e m a t ch st r i n g . S i n ce yo u h a v e d i a l ed 9 a n d t h a t
w a s m a t ch ed , t h er e a r e n o o t h er d i g i t s t o r ep l a ce.

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 9


M a tch ed w ith rul e 1
O rigina l num b er: 9 T ra ns l a ted num b er:
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Ex a m p l e 4 : I m p l e m e n t in g Sim p l e Ma t c h a n d Re p l a c e m e n t St r in g s

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / / / /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
// // 770 5 5 5 0 10 0 770 5 5 5 0 10 0

Th e m a t ch st r i n g i s em p t y a n d so i s t h e r ep l a cem en t st r i n g . Th i s i s d i f f er en t f r o m a N UL L m a t ch o r
r ep l a cem en t st r i n g . H er e t h e m a t ch st r i n g w i l l m a t ch a n yt h i n g . S i n ce n o d i g i t s a r e ex p l i ci t l y m a t ch ed , a n y
d i g i t s r ecei v ed w i l l f l o w a cr o ss t o t h e r ep l a cem en t st r i n g . W h en yo u d i a l 770 5 5 5 0 10 0 , t h e f a ct t h a t yo u h a v e
a st r i n g o f d i g i t s t r i g g er s t h e r u l e. N o n e o f t h e d i g i t s i s ex p l i ci t l y m a t ch ed , so t h e d i g i t s a r e ca r r i ed t h r o u g h
u n ch a n g ed .

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 7 7 0 5 5 5 0 1 0 0


M a tch ed w ith rul e 1
O rigina l num b er: 7 7 0 5 5 5 0 1 0 0 T ra ns l a ted num b er: 7 7 0 5 5 5 0 1 0 0
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

6 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Th e p r eced i n g ex a m p l e i s n o t so m et h i n g t h a t yo u w o u l d t yp i ca l l y d o , b u t w i t h a sl i g h t m o d i f i ca t i o n , t h i s
ex a m p l e b eco m es v er y u sef u l . B u i l d i n g a r u l e w h er e t h e m a t ch st r i n g i s “//” i s a si m p l e w a y t o p r ef i x
n u m b er s.

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / / / 9 /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
// /9/ 770 5 5 5 0 10 0 9770 5 5 5 0 10 0

Th i s n ew r u l e w i l l p r ef i x 9 t o a n y d i g i t st r i n g .

Ex a m p l e 5 : U s in g On e Se t f o r Ma t c h a n d Re p l a c e m e n t St r in g s

As st a t ed ea r l i er , a n y d i g i t s t h a t a r e m a t ch ed a r e r ep l a ced b y t h e co n t en t s o f t h e r ep l a ce p a t t er n .
S o m et i m es i t i s d esi r a b l e t o m a t ch d i g i t s t h a t yo u d o n o t w a n t t o ch a n g e. Y o u ca n d o t h i s b y g r o u p i n g d i g i t s
o r w i l d ca r d s i n t o set s.

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / ^ 5 5 5 \(. * \)/ / 6 7 8 \1 /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^5 5 5 \ (.* \)/ /6 78 \1/ 5 5 5 0 10 0 6 78 0 10 0

Th i s i s a r ep l a cem en t r u l e w h er e yo u w a n t t o m a t ch a st r i n g t h a t b eg i n s w i t h 5 5 5 a n d r ep l a ce t h e 5 5 5 w i t h
6 78 . In t h i s ex a m p l e yo u u se t h e “^” t o m a t ch f r o m t h e b eg i n n i n g o f t h e l i n e. Y o u f o l l o w t h a t w i t h 5 5 5 , so i f
t h e d i a l ed st r i n g w a s 40 40 10 0 , i t w o u l d n o t m a t ch t h i s r u l e. As st a t ed ea r l i er , t h e “\” ch a r a ct er m ea n s t h a t
t h e n ex t ch a r a ct er i s a co n t r o l ch a r a ct er a n d sh o u l d n o t b e m a t ch ed o r r ep l a ced . In t h e ex a m p l e t h e n ex t
ch a r a ct er i s t h e “( “. If t h e “\” r u l e ch a r a ct er w a s n o t i n f r o n t o f t h e “( “,t h e g a t ew a y w o u l d t r y t o m a t ch t h i s
ch a r a ct er , w h i ch i t co u l d n o t d o . Th e r u l e ch a r a ct er s “(“a n d “)” m a r k t h e b eg i n n i n g a n d en d o f a set . A set
ca n b e m a d e u p o f ex p l i ci t ch a r a ct er s o r w i l d ca r d s. In t h e ex a m p l e t h e set u ses t h e “.” w i l d ca r d , w h i ch w i l l
m a t ch a n y si n g l e ch a r a ct er , a n d t h e “* ” t o r ep ea t t h e p r ev i o u s r eg u l a r ex p r essi o n z er o o r m o r e t i m es. In t h e
ex a m p l e t h e set w i l l co v er t h e d i g i t s r ecei v ed a f t er t h e 5 5 5 , w h i ch w i l l b e 0 10 0 i n t h e d i a l ed st r i n g .

N o w lo o k a t t h e r ep l a cem en t st r i n g . Y o u see t h a t t h e “/” st a r t s t h e r ep l a cem en t st r i n g . Th e n u m b er 6 78 i s


f o l l o w ed b y t h e “\1”. Th e “\” i n d i ca t es t h a t t h e 1 i s a co n t r o l ch a r a ct er , n o t a r ep l a cem en t ch a r a ct er . Th e “\1”
r ef er s t o t h e f i r st set i n t h e m a t ch ex p r essi o n i d en t i f i ed a s (.* \) a n d w i l l b r i n g t h e co n t en t s o f t h i s set t o t h e
r ep l a ced st r i n g .

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 5 5 5 0 1 0 0


M a tch ed w ith rul e 1
O rigina l num b er: 5 5 5 0 1 0 0 T ra ns l a ted num b er: 6 7 8 0 1 0 0
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

7 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Ex a m p l e 6 : U s in g T w o Se t s f o r Ma t c h a n d Re p l a c e m e n t St r in g s

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / ^ \(7 7 0 \)\(. . . . \)/ / 6 7 8 \2 /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^\(770 \)\(… .\)/ /6 78 \2 / 770 12 3 4 6 78 12 3 4

Th i s ex a m p l e i s a v a r i a t i o n o f t h e p r ev i o u s r u l e. C a n yo u sp o t t h e d i f f er en ces? In t h e m a t ch st r i n g , yo u st a r t
w i t h t h e “/” t o st a r t t h e m a t ch st r i n g , a n d t h en u se t h e “^” t o m a t ch f r o m t h e b eg i n n i n g o f t h e st r i n g . N ex t , yo u
u se t h e “\” t o d el i m i t t h e “( “, w h i ch b eg i n s t h e f i r st set . Th en yo u w a n t t o m a t ch 770 f o l l o w ed b y t h e “\” t o
d el i m i t t h e “)”, w h i ch co m p l et es t h e f i r st set i n t h e m a t ch st r i n g . Th er e i s a n o t h er “\” t o d el i m i t t h e “( “, w h i ch
st a r t s t h e seco n d set . Th e seco n d set i s m a d e u p o f f o u r “.”. Th i s m ea n s yo u a r e g o i n g t o m a t ch a n y o f t h e
n ex t f o u r d i g i t s. Th e “\” f o l l o w s t h e f o u r d o t s, a n d t h e set i s cl o sed b y t h e “)”.W h i ch o f t h e f o l l o w i n g d i a l ed
st r i n g s w o u l d m a t ch t h i s r u l e?

770 12 3 4
770 98 76
6 78 12 3 4
770 12 3 45 6 7

Th e co r r ect a n sw er s a r e a l l o f t h em ex cep t t h e d i a l ed st r i n g t h a t b eg i n s w i t h 6 78 . Y o u a r ep r o b a b ly
w o n d er i n g a b o u t t h e o u t p u t f r o m a d i a l ed st r i n g o f 770 12 3 45 6 7. Th e m a t ch i n g st r i n g w i l l m a t ch t h e 770 i n
t h e f i r st set a n d t h e n ex t f o u r d i g i t s i n t h e seco n d set , a n d p u l l a cr o ss t h e l a st t h r ee d i g i t s u n ch a n g ed . As
st a t ed ea r l i er , a n y d i g i t s t h a t a r e n o t ex p l i ci t l y m a t ch ed i n t h e m a t ch st r i n g a r e p u l l ed a cr o ss t o t h e
r ep l a cem en t st r i n g u n ch a n g ed . S i n ce t h e d i g i t s 5 6 7 a r e n o t ex p l i ci t l y m a t ch ed i n t h e m a t ch st r i n g , t h ey a r e
p u l l ed a cr o ss u n ch a n g ed i n t o t h e r ep l a cem en t st r i n g .

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 7 7 0 1 2 3 4


M a tch ed w ith rul e 1
O rigina l num b er: 7 7 0 1 2 3 4 T ra ns l a ted num b er: 6 7 8 1 2 3 4
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Router#test voice translation-ru le 1 7 7 0 9 8 7 6


M a tch ed w ith rul e 1
O rigina l num b er: 7 7 0 9 8 7 6 T ra ns l a ted num b er: 6 7 8 9 8 7 6
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Router#test voice translation-ru le 1 6 7 8 1 2 3 4


6 7 8 1 2 3 4 D id n’ t m a tch w ith a ny of rul es

Router#test voice translation-ru le 1 7 7 0 1 2 3 4 5 6 7


M a tch ed w ith rul e 1
O rigina l num b er: 7 7 0 1 2 3 4 5 6 7 T ra ns l a ted num b er: 6 7 8 1 2 3 4 5 6 7
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

8 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Ex a m p l e 7 : U s in g On e Se t f o r Ma t c h a n d Re p l a c e m e n t St r in g s

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / ^ 7 7 0 \(. . . . \)/ / 6 7 8 \1 /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^770 \(… .\)/ /6 78 \1/ 770 12 3 4 6 78 12 3 4

B y n o w yo u sh o u l d b e seei n g a p a t t er n i n t h e m a t ch a n d r ep l a cem en t st r i n g s. Th i s i s a l i t t l e ea si er t h a n t h e
l a st o n e. W h a t d o yo u k n o w ? W h er e w i l l yo u st a r t i n t h e d i a l ed st r i n g ? W h a t a r e yo u g o i n g t o m a t ch ? H o w
m a n y set s a r e t h er e i n t h e m a t ch ed st r i n g ? W h a t i s t h e r ep l a cem en t st r i n g g o i n g t o d o ? H a v e yo u g o t i t ?

Y o u w i l l st a r t a t t h e b eg i n n i n g o f t h e st r i n g b eca u se t h e m a t ch st r i n g b eg i n s w i t h a “^”. N ex t , yo u a r e g o i n g
t o m a t ch 770 i n t h e st r i n g . Th er e i s o n e set i d en t i f i ed b y “\(… .\)”. Th e r ep l a cem en t st r i n g w i l l r ep l a ce 770
w i t h 6 78 , a n d t h e d i g i t s i n set o n e w i l l b e p u l l ed i n t o t h e r ep l a cem en t st r i n g .

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 7 7 0 1 2 3 4


M a tch ed w ith rul e 1
O rigina l num b er: 7 7 0 1 2 3 4 T ra ns l a ted num b er: 6 7 8 1 2 3 4
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Ex a m p l e 8 : Re p l a c in g t h e Mid d l e o f a Ma t c h St r in g

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / \(^ . . . \)5 5 5 \(. . . . \) / \1 6 7 8 \2 /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/\(^… \)5 5 5 \(… .\)/ /\16 78 \2 / 40 8 5 5 5 0 10 0 40 8 6 78 0 10 0

Th i s ex a m p l e i s a l i t t l e m o r e d i f f i cu l t t o u n d er st a n d . Y o u st a r t w i t h a m a t ch st r i n g t h a t st a r t s w i t h a set t h a t
st a r t s w i t h a “^” a n d m a t ch es t h e f i r st t h r ee n u m b er s. Th en yo u m a t ch ex p l i ci t l y 5 5 5 , f o l l o w ed b y a seco n d
set t h a t m a t ch es t h e n ex t f o u r d i g i t s i n t h e st r i n g . Th en yo u f i n i sh t h e m a t ch st r i n g w i t h t h e “/”.

N o w l o o k a t t h e r ep l a cem en t st r i n g . Th i s p r o b a b lylo o k s a l i t t l e st r a n g e a t f i r st g l a n ce. Y o u st a r t t h e


r ep l a cem en t st r i n g w i t h “/” a n d f o llo w t h a t w it h “\1”. Y o u p u t t h e b a ck sl a sh i n f r o n t o f t h e 1, so t h a t t h e f i r st
set i s p u l l ed t h r o u g h fro m th e m a t ch st r i n g . Th e 6 78 w i l l r ep l a ce t h e 5 5 5 i n t h e m a t ch st r i n g . Th en yo u
d el i m i t t h e n u m b er 2 w i t h “\2 ” so t h a t t h e seco n d set i s p u l l ed t h r o u g h i n t o t h e r ep l a cem en t st r i n g .

S o w h en t h e d i a l ed st r i n g i s so m et h i n g l i k e 40 45 5 5 0 10 0 , t h e r ep l a cem en t i s 40 46 78 0 10 0 . Al l yo u d i d w a s
ch a n g e t h e m i d d l e t h r ee d i g i t s o f t h e d i a l ed st r i n g .

Th er e a r e o t h er w a ys t o d o t h i s w i t h t h r ee set s, w h er e t h e m a t ch ed 5 5 5 b eco m es p a r t o f a set a n d t h e


r ep l a cem en t st r i n g w o u l d t h en n eed t o ch a n g e t o /\16 78 \3 /, so t h a t t h e f i r st set i s p u l l ed i n t o t h e
r ep l a cem en t st r i n g , t h e 5 5 5 i s r ep l a ced b y 6 78 , a n d t h en t h e t h i r d set i s p u l l ed i n t o t h e r ep l a cem en t st r i n g .

9 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 4 0 8 5 5 5 0 1 0 0


M a tch ed w ith rul e 1
O rigina l num b er: 4 0 8 5 5 5 0 1 0 0 T ra ns l a ted num b er: 4 0 8 6 7 8 0 1 0 0
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Router#test voice translation-ru le 1 4 0 4 5 5 5 1 2 3 4


M a tch ed w ith rul e 1
O rigina l num b er: 4 0 4 5 5 5 1 2 3 4 T ra ns l a ted num b er: 4 0 4 6 7 8 1 2 3 4
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Ex a m p l e 9 : Ma t c h in g a Se t a t t h e B e g in n in g o f a St r in g a n d Re p l a c in g t h e En d o f t h e St r in g

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / \(^ . * \)0 1 0 0 / / \1 0 1 9 9 /

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/\(^.* \)0 10 0 / /\10 199/ 5 5 5 0 10 0 5 5 5 0 199

Th i s r u l e m a t ch es f r o m t h e en d o f t h e st r i n g . N o t i ce t h a t t h e m a t ch st r i n g h a s a si n g l e set a n d t h a t i t
m a t ch es t h ed ig its0 10 0 . Th e r ep l a cem en t st r i n g ch a n g es t h e m a t ch ed d i g i t s f r o m 0 10 0 t o 10 99 a n d p u l l s
a cr o ss set 1fro m th em a t ch ed st r i n g . If yo u d i a l t h e f o l l o w i n g st r i n g s, w h i ch o n es w i l l b e m a t ch ed a n d w i l l
u se t h e r ep l a cem en t st r in g ?

9195 5 5 0 10 0
5 5 5 0 10 0
6 78 0 10 0
7770 10 0
40 45 5 5 0 10 0

Th e a n sw er i s t h a t a l l t h ese st r i n g s w i l l m a t ch t h e m a t ch st r i n g , a n d t h e r ep l a cem en t st r i n g w i l l ch a n g e t h em
t o t h ef o llo w in g :

9195 5 5 0 199
5 5 5 0 199
6 78 0 199
7770 199
40 45 5 5 0 199

Th e r ea so n i s t h a t t h e f i r st set i s \(.* \). Th i s m ea n s t h a t yo u w i l l m a t ch a n y ch a r a ct er a n d t h en r ep ea t i t z er o


o r m o r e t i m es. S o i f yo u h a v e a v a r i a b l e-l en g t h n u m b er t h a t i s b ei n g d i a l ed b u t en d s i n 0 10 0 , t h e
r ep l a cem en t st r i n g w i l l p u l l a cr o ss ev er yt h i n g i n t h e f i r st set a n d ch a n g e o n l y t h e l a st f o u r d i g i t s a s l o n g a s
t h ey a r e 0 10 0 .

10 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 9 1 9 5 5 5 0 1 0 0


M a tch ed w ith rul e 1
O rigina l num b er: 9 1 9 5 5 5 0 1 0 0 T ra ns l a ted num b er: 9 1 9 5 5 5 0 1 9 9
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Router#test voice translation-ru le 1 5 5 5 0 1 0 0


M a tch ed w ith rul e 1
O rigina l num b er: 5 5 5 0 1 0 0 T ra ns l a ted num b er: 5 5 5 0 1 0 9 9
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Router#test voice translation-ru le 1 7 7 0 0 1 0 0


M a tch ed w ith rul e 1
O rigina l num b er: 7 7 0 0 1 0 0 T ra ns l a ted num b er: 7 7 0 0 1 9 9
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Router#test voice translation-ru le 1 4 0 4 6 7 8 0 1 0 0


M a tch ed w ith rul e 1
O rigina l num b er: 4 0 4 6 7 8 0 1 0 0 T ra ns l a ted num b er: 4 0 4 6 7 8 1 0 9 9
O rigina l num b er ty p e: none T ra ns l a ted num b er ty p e: none
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

Ex a m p l e 1 0 : P r e f ix in g Dig it s a n d C h a n g in g t h e N u m b e r T y p e

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1/ ^ 2 / / 9 1 2 1 0 5 5 5 2 / ty p e unk now n na tiona l

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^2 / /912 0 15 5 5 2 / 2 0 0 1 912 0 15 5 5 2 0 0 1 t yp e n a t i o n a l

In t h i s ex a m p l e, yo u w a n t t o ex p a n d t h e d i a l ed d i g i t s so t h a t t h ey ca n p l a ce a n a t i o n a l ca l l o v er t h e P S TN .
Th e m a t ch st r i n g w i l l m a t ch f r o m t h e b eg i n n i n g o f t h e d i a l ed st r i n g a n d w i l l m a t ch a n y d i a l ed st r i n g t h a t
b eg i n s w i t h a 2 . Th e r ep l a ce st r i n g w i l l p r ef i x t h e a ccess co d e o f 9 a n d t h en d i a l a 1 f o r l o n g d i st a n ce a n d
a d d t h e a r ea co d e o f 2 0 1 a n d t h e o f f i ce co d e o f 5 5 5 2 . N o t i ce t h a t t h e r ep l a ce st r i n g i n cl u d es t h e l ea d i n g 2
f r o m t h e m a t ch st r i n g . If yo u f a i l t o i n cl u d e t h i s i n t h e r ep l a cem en t st r i n g , t h e o n l y d i g i t s t h a t w i l l b e ca r r i ed
a cr o ss t o t h e r ep l a cem en t st r i n g w i l l b e t h e 0 0 1 o f t h e d i a l ed st r i n g .

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 2 0 0 1 ty p e na tiona l


M a tch ed w ith rul e 1
O rigina l num b er: 2 0 0 1 T ra ns l a ted num b er: 9 1 2 0 1 5 5 5 2 0 0 1
O rigina l num b er ty p e: unk now n T ra ns l a ted num b er ty p e: na tiona l
O rigina l num b er p l a n: none T ra ns l a ted num b er p l a n: none

11 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Ex a m p l e 1 1 : P r e f ix in g Dig it s a n d C h a n g in g t h e N u m b e r T y p e a n d N u m b e r P l a n

Router(config)#voice translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1/ ^ 2 / / 9 1 2 0 1 5 5 5 2 ty p e unk now n na tiona l p l a n
unk now n is d n

Re p l a c e Re p l a c e d
Ma t c h St r in g St r in g Dia l e d St r in g St r in g
/^2 / /912 0 15 5 5 2 / 2 0 0 1 912 0 15 5 5 2 0 0 1 t yp e n a t i o n a l p l a n i sd n

Th i s ex a m p l e i s si m i l a r t o E x a m p l e 10 . Th e ch a n g es h er e a r e i n t h e n u m b er t yp e a n d t h e n u m b er p l a n . Y o u
h a v e ch a n g ed f r o m a n u n k n o w n n u m b er t yp e t o a n a t i o n a l n u m b er t yp e a n d f r o m a n u n k n o w n n u m b er p l a n
t o a n IS D N n u m b er p l a n .

If yo u t est t h i s v o i ce t r a n sl a t i o n r u l e, t h e o u t p u t i s a s f o l l o w s:

Router#test voice translation-ru le 1 2 0 0 1 ty p e na tiona l


M a tch ed w ith rul e 1
O rigina l num b er: 2 0 0 1 T ra ns l a ted num b er: 9 1 2 0 1 5 5 5 2 0 0 1
O rigina l num b er ty p e: unk now n T ra ns l a ted num b er ty p e: na tiona l
O rigina l num b er p l a n: unk now n T ra ns l a ted num b er p l a n: is d n

12 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Step 2 : C o n f i g u r e a Vo i c e Tr a n s l a ti o n Pr o f i l e

A v o i ce t r a n sl a t i o n p r o f i l e i s m a d e u p o f t w o co m m a n d s. F i r st i s t h e co m m a n d v o ic e t r a n s l a t io n -p r o f il e
na me. Use t h i s co m m a n d i n g l o b a l co n f ig u r a tio n m o d e t o d ef i n e a v o i ce t r a n sl a t i o n p r o f i l e f o r v o i ce ca l l s.
Th e na me p o r t i o n o f t h e co m m a n d ca n b eu p to 3 1 ch a r a ct er s l o n g a n d d i f f er en t i a t es o n e v o i ce t r a n sl a t i o n
p r o f i l e f r o m a n o t h er . Th er e i s n o d ef a u lt v a lu ef o r t h i s co m m a n d .

H er e i s a n ex a m p l e o f a v o i ce t r a n sl a t i o n p r o f i l e. Th e d escr i p t i v e n a m e P S TN o u t h a s b een a ssi g n ed t o t h e


v o i ce t r a n sl a t i o n p r o f i l e so t h a t i t i s ea si er t o d et er m i n e w h a t t h e p r o f i l e a n d a sso ci a t ed r u l es d o .

Router(config)#voice translation-p rof ile P S T N out

R ef er t o Ta b l e 4 f o r t h e co n f i g u r a t i o n o f t h e v o ic e t r a n s l a t io n -p r o f il e co m m a n d .

T a b le 4

v o ic e t r a n s l a t io n -p r o f il e na me Th i s co m m a n d cr ea t es t h e v o i ce
t r a n sl a t i o n p r o f i l e. Th e n a m e
d i f f er en t i a t es o n e v o i ce t r a n sl a t i o n p r o f i l e
f r o m a n o t h er a n d ca n b e u p t o 3 1
ch a r a ct er s l o n g .

Th e seco n d p a r t o f t h e v o i ce t r a n sl a t i o n -p r o f i l e co m m a n d u ses o n e o f f o u r o p t i o n s. Th ey a r e t r a n s l a t e
c a l l e d t ra ns l a t i o n rul e# , t r a n s l a t e c a l l in g t ra ns l a t i o n rul e# , t r a n s l a t e r e d ir e c t c a l l e d t ra ns l a t i o n rul e# , a n d
t r a n s l a t e r e d ir e c t -t a r g e t t ra ns l a t i o n rul e # . Th e r eq u i r em en t s o f t h e t r a n sl a t i o n p r o f i l e w i l l d i ct a t e w h i ch o f
t h ese o p t i o n s yo u n eed t o u se. Th ese co m m a n d s t a k e t h e v o i ce t r a n sl a t i o n r u l e t h a t yo u w a n t t o a sso ci a te
w i t h t h e v o i ce t r a n sl a t i o n p r o f i l e a n d d ef i n e i f t h e ca l l ed o r ca l l i n g n u m b er s a r e t r a n sl a t ed , t h e ca l l ed n u m b er
i s r ed i r ect ed , o r i f t h e t r a n sl a t i o n r u l e i s t o b e a sso ci a t ed w i t h t r a n sf er -t o n u m b er s o r ca l l -f o r w a r d i n g f i n a l
d est i n a t i o n n u m b er s.

H er e i s a n ex a m p l e w h er e a v o ic e t r a n s l a t io n -p r o f il e P ST N o u t co m m a n d h a s b een cr ea t ed a n d v o ic e
t r a n s l a t io n -r u l e 4 w i l l b e u sed t o t r a n sl a t e ca l l ed n u m b er s.

Router(config)#voice translation-p rof ile P S T N ou t


Router(cfg-tra ns l a tion-p rofil e)# translate called 4

R ef er t o Ta b l e 5 f o r t h e co n f i g u r a t i o n o f t h e v o ic e t r a n s l a t io n -p r o f il e co m m a n d .

T a b le 5

Sy n t a x De s c r ip t io n
t r a n s l a t e c a l l e d t ra ns l a t i o n rul e # Th i s co m m a n d u n d er t h e v o i ce t r a n sl a t i o n
p r o f i l e d ef i n es t h e t r a n sl a t i o n p r o f i l e r u l e
f o r t h e ca l l ed n u m b er .
t r a n s l a t e c a l l in g t ra ns l a t i o n rul e # Th i s co m m a n d u n d er t h e v o i ce t r a n sl a t i o n
p r o f i l e d ef i n es t h e t r a n sl a t i o n p r o f i l e r u l e
f o r t h e ca l l i n g n u m b er .
t r a n s l a t e r e d ir e c t c a l l e d t ra ns l a t i o n rul e # Th i s co m m a n d u n d er t h e v o i ce t r a n sl a t i o n
p r o f i l e d ef i n es t h e t r a n sl a t i o n p r o f i l e r u l e
f o r t h e r ed i r ect -ca l l ed n u m b er .
t r a n s l a t e r e d ir e c t -t a r g e t t ra ns l a t i o n rul e # Th i s co m m a n d a sso ci a t es t h e t r a n sl a t i o n
r u l e w i t h t r a n sf er -t o n u m b er s a n d ca l l -
f o r w a r d i n g f i n a l d est i n a t i o n n u m b er s.

13 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Step 3 : A s s i g n a Vo i c e Tr a n s l a ti o n Pr o f i l e to a Di a l Peer o r a Vo i c e Po r t

To a ssi g n a t r a n sl a t i o n p r o f i l e t o a d i a l p eer , u se t h e t r a n s l a t io n -p r o f il e co m m a n d i n d i a l -p eer co n f i g u r a t i o n


m o d e. H er e i s a n ex a m p l e o f cr ea t i n g a v o i ce t r a n sl a t i o n r u l e, a sso ci a t i n g i t w i t h a v o i ce t r a n sl a t i o n p r o f i l e
a n d a ssi g n i n g t h e v o i ce t r a n sl a t i o n p r o f i l e w i t h a d i a l p eer .

Router(config)#translation-ru le 1
Router(cfg-tra ns l a tion-rul e)#ru le 1 / ^ 2 … / / 9 1 2 0 1 2 0 1 2 /
Router(config)#voice-translation-p rof ile P S T N ou t
Router(cfg-tra ns l a tion-p rofil e)#translate called 1
Router(config)#d ial-p eer voice 9 1 0 p ots
Router(config-d ia l -p eer)#d estination-p attern 2 …
Router(config-d ia l -p eer)#p ort 1 / 0 : 0
Router(config-d ia l -p eer)#translation p rof ile ou tg oing P S T N ou t

In t h e ex a m p l e, v o i ce t r a n sl a t i o n r u le1h a sb een cr ea t ed w i t h r u l e 1. N ex t , a v o i ce t r a n sl a t i o n p r o f i l e h a s
b een cr ea t ed w i t h t h e n a m eP S TN o u t,a n d v o i ce t r a n sl a t i o n r u l e 1 h a s b een a sso ci a t ed w i t h i t u si n g t h e
co m m a n d t r a n s l a t io n p r o f il e o u t g o in g P ST N o u t . F i n a l l y, t h e v o i ce t r a n sl a t i o n p r o f i l e h a s b een a ssi g n ed
t o t h e d i a l p eer w i t h t h e co m m a n d tra n s l a t io n p r o f il e o u t g o in g P ST N o u t .

R ef er t o Ta b l e 6 f o r t h e co n f i g u r a t i o n o f t h e t r a n sl a t i o n p r o f i l e i n a d i a l p eer .

T a b le 6

Sy n t a x De s c r ip t io n
in c o m in g S p eci f i es t h a t th i s t r a n sl a t i o n p r o f i l e
h a n d l es i n co m in g ca l l s.
o u t g o in g S p eci f i es t h a t th i s t r a n sl a t i o n p r o f i l e
h a n d l es o u t g o in g ca l l s.

To a ssi g n a t r a n sl a t i o n p r o f i l e t o a v o i ce p o r t , u se t h e t r a n s l a t io n -p r o f il e co m m a n d i n v o i ce p o r t
co n f i g u r a t i o n m o d e. H er e i s a n ex a m p l e o f cr ea t i n g a v o i ce t r a n sl a t i o n r u l e, a sso ci a t i n g i t w i t h a v o i ce
t r a n sl a t i o n p r o f i l e, a n d a ssi g n i n g t h e v o i ce t r a n sl a t i o n p r o f i l e w i t h a v o i ce p o r t .

Router(config)#translation-ru le 3
Router (cfg-tra ns l a tion-rul e)#ru le 1 / ^ . * \(. . . . \)/ / \1 /
Router(config)#voice-translation-p rof ile P S T N in
Router(config)#voice-p ort 1 / 0 : 0
Router (config-v oicep ort)#translation-p rof ile incom ing P S T N in

In t h e ex a m p l e, v o i ce t r a n sl a t i o n r u l e 3 h a s b een cr ea t ed w i t h r u l e 1. N ex t , a v o i ce t r a n sl a t i o n p r o f i l e h a s
b een cr ea t ed w i t h t h e n a m e P S TN i n , a n d v o i ce t r a n sl a t i o n r u l e 3 h a s b een a sso ci a t ed w i t h i t u si n g t h e
co m m a n d tra n s l a t e in c o m in g P ST N in . F i n a l l y, t h e v o i ce t r a n sl a t i o n p r o f i l e P S TN i n h a s b een a ssi g n ed t o
v o i ce p o r t 1/0 :0 w i t h t h e co m m a n d t r a n s l a t io n -p r o f il e in c o m in g P ST N in .

14 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Ex a m p l e 1

Th i s i s a t yp i ca l si t u a t i o n w h er e yo u h a v e t h e p o t en t i a l f o r t w o p a t h s b et w een B r a n ch 2 a n d B r a n ch 1. In a
n o rm a l o p er a t i n g si t u a t i o n , t h e u ser s a t B r a n ch 2 u se f o u r -d i g i t d i a l i n g t o r ea ch B r a n ch 1. P l ea se r ef er t o t h e
d ia l -p e e r v o ic e 3 0 0 v o ip co m m a n d i n t h e co n f i g u r a t i o n sn i p t h a t f o l l o w s. Th i s d i a l p eer w i l l sen d t h e ca l l s
fro m B ra n ch 2 t o B r a n ch 1 o v er t h e IP W AN . W h a t h a p p en s w h en t h e IP W AN f a i l s? Th e u ser s a t B r a n ch 2
w i l l n eed t o r em em b er t h e f u l l E .16 4 t el ep h o n e n u m b er f o r B r a n ch 1 a n d t h e sp eci f i c ex t en si o n t h ey n eed t o
r ea ch . If t h e E .16 4 n u m b er m a t ch es t h e ex t en si o n n u m b er s, t h i s m i g h t b e si m p l e, b u t i f t h e o r g a n i z a t i o n h a s
2 5 r em o t e l o ca t i o n s a n d n o t ev er y l o ca t i o n h a s a n ex a ct m a t ch b et w een d i r ect i n w a r d d i a l i n g (D ID ) a n d t h e
ex t en si o n n u m b er , t h a t m i g h t ca u se p r o b l em s f o r t h e en d u ser s.

Th e si m p l e so l u t i o n i s t o set u p t w o v o i ce d i a l p eer s. C o n f i g u r e o n e d i a l p eer t o sen d ca l l s o v er t h e IP W AN ,


a n d co n f i g u r e a seco n d d i a l p eer t h a t h a s a l o w er p r ef er en ce t o sen d ca l l s o v er t h e P S TN . Th e p r o b l em i s
t h a t i f yo u w a n t t h e en d u ser s t o co n t i n u e t o u se f o u r -d i g i t d i a l i n g , yo u n eed t o m a k e p r o v i si o n s i n t h e d i a l
p eer t h a t sen d s ca l l s o u t t o t h e P S TN t o p r ef i x t h e n ecessa r y d i g i t s t o p r o v i d e a n E .16 4 n u m b er .

R ef er t o t h e p r eced i n g d i a g r a m . Th e en d u ser a t B r a n ch 2 w h o h a s ex t en si o n 40 0 1 w a n t s t o p l a ce a ca l l t o
a u ser a t B r a n ch 1 w h o h a s ex t en si o n 3 0 0 1. Th e B r a n ch 2 u ser d i a l s 3 0 0 1, a n d t h e d i a l ed st r i n g m a t ch es
d ia l -p e e r v o ic e 3 0 0 v o ip . Th e ca l l i s sen t o v er t h e IP W AN t o t h e d ev i ce w i t h t h e a d d r ess o f 10 .1.5 .3 ,
w h i ch i s t h e C i sco Un i f i ed C o m m u n i ca t i o n s M a n a g er E x p r ess d ev i ce a t B r a n ch 2 . If t h e IP W AN h a s f a i l ed ,
t h e ca l l w i l l n eed t o b e r o u t ed a cr o ss t h e P S TN . Th i s p r o cess w i l l r eq u i r e t h e d i a l ed n u m b er t o r ecei v e a
p r ef i x so t h a t i t ca n p r o p er l y d i a l t h e E .16 4 n u m b er a sso ci a t ed w i t h t h e sp eci f i c ex t en si o n a t B r a n ch 1.

!
v oice tra ns l a tion-rul e 1
rul e 1 / ^ 3 \(. . . \)/ / 0 0 1 3 0 1 3 0 1 3 \1 /
!
v oice tra ns l a tion-p rofil e b ra nch 1
tra ns l a te ca l l ed 1
!
d ia l -p eer v oice 3 0 0 v oip
d es tina tion-p a ttern 3 . . .
s es s ion ta rget ip v 4 : 1 0 . 1 . 5 . 3
!
d ia l -p eer v oice 3 0 0 0 p ots
d es tina tion-p a ttern 3 . . .
p reference 1
tra ns l a tion-p rofil e outgoing b ra nch 1
p ort 1 / 0 : 2 3
!

15 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
R ef er a g a i n t o t h e co n f i g u r a t i o n sn i p . Th e f i r st l i n e cr ea t es t h e v o i ce t r a n sl a t i o n r u l e 1 w i t h r u l e 1. Th i s
m a t ch es a d i a l ed st r i n g t h a t b eg i n s w i t h 3 a n d t h a t co n t a i n s a set t h a t m a t ch es t h r ee v a r i a b l e d i g i t s. Y o u
m a y a l so n eed t o co n si d er t h e p o si t i o n o f t h e d i g i t s i n t h e d i a l ed st r i n g yo u a r e m a t ch i n g .

Th e r ep l a cem en t st r i n g t h en p r ef i x es t h e a p p r o p r i a t e d i g i t s f o r a n i n t er n a t i o n a l ca l l . In t h e ex a m p l e, 0 0
i n d i ca t es a n i n t er n a t i o n a l ca l l , 1 i s t h e co u n t r y co d e f o r t h e Un i t ed S t a t es, 3 0 1 i s t h e a r ea co d e, 3 0 1 i s t h e
p r ef i x , a n d 3 isth ep a r t th a t w a s m a t ch ed i n t h e m a t ch st r i n g b u t w a s n o t b r o u g h t a cr o ss t o t h e m a t ch st r i n g
b eca u se i t m a t ch ed t h e m a t ch st r i n g ex p l i ci t l y. F i n a l l y, t h e f i r st set i s p u l l ed a cr o ss f r o m t h e m a t ch st r i n g t o
t h e r ep l a cem en t st r i n g t o co m p l et e t h e E .16 4 p h o n e n u m b er .

Th e n ex t co m p o n en t co n f i g u r ed i s t h e v o i ce t r a n sl a t i o n p r o f i l e. N o t i ce t h a t t h i s h a s b een g i v en t h e n a m e
bra nc h 1 , a n d yo u w i l l b e t r a n sl a t i n g t h e ca l l ed n u m b er u si n g v o i ce t r a n sl a t i o n r u l e 1. Th e t r a n s l a t io n -
p r o f il e o u t g o in g b r a n c h 1 co m m a n d h a s b een a p p l i ed t o d ia l -p e e r v o ic e 3 0 0 0 p o t s .

W h en a u ser a t B r a n ch 2 p l a ces a ca l l t o B ra n ch 1 a n d t h e IP W AN i s d o w n , d ia l -p e e r v o ic e 3 0 0 0 p o t s w i l l
b em a t ch ed , si n ce i t h a sth e sa m e d est i n a tio n p a t t er n a s d ia l -p e e r v o ic e 3 0 0 p o t s b u t a l o w er p r ef er en ce.
Th e v o ic e t r a n s l a t io n -p r o f il e o u t g o in g b r a n c h 1 co m m a n d w i l l t r a n sl a t e t h e d i a l ed d i g i t s 3 0 0 1 t o
0 0 13 0 13 0 13 0 0 1 a n d sen d t h e ca l l o u t t o th eP S TN .

Th er e i s a n a l t er n a t i v e m et h o d o f a ch i ev i n g t h e sa m e r esu l t b u t w it h o u t t h e v o i ce t r a n sl a t i o n r u l e. Y o u co u l d
cr ea t e t w o d i a l p eer s t h a t p o i n t t o t h e IP W AN a n d t h e P S TN w ith t h e h i g h est p r ef er en ce g o i n g t o t h e IP
W AN d i a l p eer . Y o u co u l d t h en u se t h e p r ef i x co m m a n d in p la ce o f t h e v o i ce t r a n sl a t i o n r u l e t o p r ef i x t h e
r eq u i r ed d i g i t s t o p l a ce t h e ca l l o v er t h e P S TN . Th ef o llo w in g co n f i g u r a t i o n ex a m p l e sh o w s h o w th isis
a cco m p l i sh ed .

!
d ia l -p eer v oice 3 0 0 v oip
d es tina tion-p a ttern 3 . . .
s es s ion ta rget ip v 4 : 1 0 . 1 . 5 . 3
!
d ia l -p eer v oice 3 0 0 p ots
d es tina tion-p a ttern 3 . . .
p refix 9 0 0 1 3 0 1 3 0 1
p ort 1 / 0 : 2 3
p reference 1
!

Ex a m p l e 2

16 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
In t h i s scen a r i o , B r a n ch 1 h a s m o v ed . Th e a r ea co d e i s t h e sa m e, b u t t h e m a i n n u m b er f o r t h e o f f i ce h a s
ch a n g ed , a l t h o u g h t h e ex t en si o n n u m b er s r em a i n t h e sa m e. C a l l s f r o m B r a n ch 2 t o B r a n ch 1 ca n st i l l u se 4-
d ig it d ia lin g o v er t h e IP W AN , b u t ca l l s t h a t a r e p l a ced o v er t h e P S TN n o w f a i l b eca u se t h e D ID r a n g e i s
d i f f er en t f r o m t h e ex t en si o n n u m b er s.

R ef er t o t h e co n f i g u r a t i o n sn i p . A v o ic e tra n s l a t io n -r u l e 1 co m m a n d h a s b een cr ea t ed w i t h r u l e 1 t h a t
m a t ch es a n y st r i n g b eg i n n i n g w i t h a 3 fo llo w ed b y t h r ee v a r i a b l e d i g i t s. Th i s i s t r a n sl a t ed t o a n i n t er n a t i o n a l
n u m b er w h er e 0 0 i s t h e i n t er n a t i o n a l d ia lin g co d e, 1 i s t h e co u n t r y co d e f o r t h e Un i t ed S t a t es, t h e a r ea co d e
i s 3 0 1, t h e p r ef i x i s 5 5 5 , a n d t h e f i r st d i g it o f t h e D ID r a n g e i s 4. A v o i ce t r a n sl a t i o n p r o f i l e h a s b een cr ea t ed
w i t h t h e n a m e b r a n ch 1p st n , a n d t h ep ro f ile w i l l t r a n sl a t e o u t g o i n g d i a l ed d i g i t s t h a t b eg i n w i t h a 3 u si n g
v o ic e t r a n s l a t io n –r u l e 1 .

Th e d i a l p eer t h a t p l a ces ca l l s o v er t h e IP W AN w i l l co n t i n u e t o w o r k . Th e d i a l p eer t o sen d ca l l s o v er t h e


P S TN i s co n f i g u r ed w i t h t h e v o ic e t r a n s l a t io n -p r o f il e o u t g o in g b r a n c h 1 p s t n co m m a n d .

!
v oice-tra ns l a tion rul e 1
rul e 1 / ^ 3 \(. . . \)/ / 0 0 1 3 0 1 5 5 5 4 \1 /
!
v oice tra ns l a tion-p rofil e b ra nch 1 p s tn
tra ns l a te ca l l ed 1
!
d ia l -p eer v oice 3 0 0 v oip
d es tina tion-p a ttern 3 . . .
s es s ion ta rget ip v 4 : 1 0 . 1 . 5 . 3
!
d ia l -p eer v oice 3 0 0 0 p ots
d es tina tion p a ttern 3 . . .
p reference 1
tra ns l a tion-p rofil e outgoing b ra nch 1 p s tn
p ort 1 / 0 : 2 3
!

At B r a n ch 1 t h e P S TN i s p r o v i d i n g t h e 10 -d i g i t st r i n g 3 0 1-5 5 5 -40 0 0 . S i n ce t h e i n t er n a l ex t en si o n s n o l o n g er
m a t ch t h e D ID r a n g e, a v o i ce t r a n sl a t i o n r u l e a n d v o i ce t r a n sl a t i o n p r o f i l e m u st b e cr ea t ed t o r ed u ce t h e 10
d i g i t s t o 4 d i g i t s a n d t o ch a n g e t h e l ea d i n g ex t en si o n n u m b er f r o m t h e D ID r a n g e st a r t i n g w i t h 40 0 0 t o 3 0 0 0 .

R ef er t o t h e co n f i g u r a t i o n sn i p . F i r st , a v o i ce t r a n sl a t i o n r u l e 1 i s cr ea t ed w i t h r u l e 1 t h a t m a t ch es t h e 10 -
d ig it D ID r a n g e a n d st r i p s i t d o w n t o 4 d i g i t s. At t h e sa m e t i m e, t h e r u l e ch a n g es t h e l ea d i n g d i g i t f r o m a 4 t o
a 3 .N o w i f t h e IP W AN f a i l s, a n y b r a n ch t h a t t r i es t o d i a l a cr o ss t h e P S TN w i l l r ea ch t h e co r r ect ex t en si o n s
w ith o u t d i a l i n g a n y ex t r a d i g i t s.

!
v oice tra ns l a tion-rul e 1
rul e 1 / ^ 3 0 1 5 5 5 4 \(. . . \)/ / 3 \1 /
!
v oice tra ns l a tion-p rofil e P S T N in
tra ns l a te incom ing 1
!
v oice-p ort 1 / 0 : 2 3
tra ns l a tion p rofil e incom ing P S T N in
!

17 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
Ex a m p l e 3

Y o u w i l l n o w a p p l y a v o i ce t r a n sl a t i o n r u l e t o a v o i ce p o r t . Y o u m a y n eed t o d o t h i s i n si t u a t i o n s w h er eth e
P S TN i s d el i v er i n g 10 d i g i t s a n d yo u n eed t o st r i p t h em d o w n t o 4 d i g i t s so t h a t t h ey ca n b e m a t ch ed to th e
i n t er n a l ex t en si o n s. In t h e ex a m p l e a ca l l er d i a l s 3 0 1-5 5 5 -40 0 5 t o p l a ce a ca l l t o ex t en si o n 40 0 5 a t B r a n ch
1. Th e P S TN d el i v er s t h e ca l l t o C i sco Un i f i ed C o m m u n i ca t i o n s M a n a g er E x p r ess a t B r a n ch 1. Th e v o i ce
t r a n sl a t i o n r u l e t h a t m eet s t h ese r eq u i r em en t s i s a s f o l l o w s:

!
v oice tra ns l a tion-rul e 3
rul e 1 / ^ 3 0 1 5 5 5 \(. . . . \)/ / \1 /
!
v oice tra ns l a tion-p rofil e incom ing p s tn
tra ns l a te ca l l ed 3
!

N o w yo u n eed t o a p p l y t h e v o i ce t r a n sl a t i o n r u l e t o t h e v o i ce p o r t . Th e co m m a n d syn t a x t o co m p l et e t h i s
st ep i s a s f o l l o w s:

!
v oice-p ort 1 / 0 : 0
tra ns l a te ca l l ed p s tn
!

In m a n y g a t ew a y co n f i g u r a t i o n s, t h e f o l l o w i n g d i a l -p eer co n f i g u r a t i o n i s i n cl u d ed . Th i s d i a l p eer m a t ch es
a n y i n co m i n g n u m b er , a n d t h e d ir e c t -in w a r d d ia l co m m a n d k eep s t h e n u m b er f r o m h a v i n g a seco n d a r y
d i a l -t o n e.

!
d ia l -p eer v oice 1 p ots
incom ing-ca l l ed num b er .
d irect-inw a rd d ia l
!

18 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .
If t h e P S TN i s sen d i n g 10 d i g i t s, t h e g a t ew a y w i l l n o t m a t ch a n y o f t h e i n t er n a l d i a l p eer s, b u t t h e 10 d i g i t s
m a y m a t ch ei t h er d ia l -p e e r v o ic e 1 p o t s i f i t i s co n f i g u r ed o r t h e d ef a u l t d i a l p eer . If d ia l -p e e r v o ic e 1
p o t s i s n o t co n f i g u r ed , t h e i n co m i n g 10 d i g i t s w i l l m a t ch o n l y t h e d ef a u l t d i a l p eer a n d w i l l r et u r n a f a st b u sy
si g n a l t o t h e ca l l er , b eca u se t h e n u m b er d i a l ed d o es n o t m a t ch a n y i n t er n a l d i a l p eer s. B y u si n g t h e v o i ce
t r a n sl a t i o n p r o f i l e a n d a p p l yi n g i t t o t h e v o i ce p o r t t o st r i p t h e 10 -d i g i t n u m b er b ei n g p r esen t ed b y t h e P S TN
t o 4 d i g i t s, t h e g a t ew a y ca n n o w m a t ch t h em a g a i n st t h e i n t er n a l d i a l p eer s.

E v en i f yo u o m i t d ia l -p e e r v o ic e 1 p o t s f r o m t h e co n f i g u r a t i o n a n d co n f i g u r e a v o i ce t r a n sl a t i o n p r o f i l e t o
st r i p t h e 10 -d i g i t n u m b er t o 4 d i g i t s, t h e n u m b er w i l l m a t ch a n i n t er n a l d i a l p eer .

19 V o ic e T r a n s la tio n R u le s in C is c o I O S G a te w a y s © 20 0 8 C i s c o S y s t e m s , I n c .

S-ar putea să vă placă și