Professional Documents
Culture Documents
Configuring Voice Translation Rules in IOS Gateways Edit Complete 12
Configuring Voice Translation Rules in IOS Gateways Edit Complete 12
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 m o d e, w h i ch w a v o i ce t r a n sl a r u l es w i t h a t r a a n d ill m tio n n sl a 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 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 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 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 m a n d in g lo er u let h a t w a sso ci a t e a t r a n s l a t io n b a l co n f i g u r a t i o n i l l b e a sso ci a t ed w i t h set o f t r a n sl a t i o 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 number De s c r ip t io n 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. 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 eced en ce v a l u e o f ea ch r u l e ca n b e u sed t o t h e set . Th e p r eced en ce v a l u e o f ea ch sed . F o r ex a m p l e, r u l e 3 m a y b e en t er ed e in a r u le b ef o r e
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 / unk now n is d n / 5 6 7 8 / p l a n na tiona l na tiona l ty p e
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 p rec ed enc e | ma t c h p a t t ern | | rep l a c e-p a t t ern | De s c r ip t io n 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 . 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 . 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 . 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 a reth ex cep t yp e o 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 e sa m e a s i n t h e p r eced i n g l i st 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 f a r g u m en t .
t y p e ma t c h -t y p e rep l a c e-t y p e
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
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 .
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 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 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 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 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 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 n d n i a l ed itsa d ig it e co lo o k o t ch a n g e t h em , yo u ca n cr ea t e a st r i n g t h a t b eg i n s w i t h 3 . Th e ( \) r e m a t ch ed . In a n o t h er ex a m p l e, t h e w i t h a 4, a n d t h e \ w i l l ca u se t h e n t en t s o f t h e f i r st set t o b e p u l l ed 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 ^ $ / \ [lis t] [ ^l i s t ] . * + ? ( ) & 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. 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 . 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 .
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 .
Dia l e d St r in g 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 / ^ $ / Ma t c h St r in g /^$/ Re p l a c e St r in g / 2 0 0 1/ / 2 0 0 1 / Re p l a c e d St r in g 2 0 0 1
Dia l e d St r in g N UL L
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 .
Dia l e d St r in g 9
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 M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 9 b er ty b er p l 1 translation-ru le 1 9 T ra ns l a ted num b er: none T ra ns l a ted num b er ty p e: none none T ra ns l a ted num b er p l a n: none
p e: a n:
Ma t c h St r in g //
Dia l e d St r in g 770 5 5 5 0 10 0
en t st r i n g . Th i s i s d i f f er en t t ch a n yt h i n g . S i n ce n o d i g t st r i n g . W h en yo u d i a l 770 i t s i s ex p l i ci t l y m a t ch ed , so
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 M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 7 b er ty b er p l 1 translation-ru le 1 7 7 0 5 5 5 0 1 0 0 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 7 7 0 5 5 5 0 1 0 0 num b er ty p e: none num b er p l a n: none
7 0 5 5 5 0 1 0 0 p e: none a n: none
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 St r in g /9/ Re p l a c e d St r in g 9770 5 5 5 0 10 0
Ma t c h St r in g //
Dia l e d St r in g 770 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 \(. * \)/ Ma t c h St r in g /^5 5 5 \ (.* \)/ Re p l a c e St r in g /6 78 \1/ Dia l e d St r in g 5 5 5 0 10 0 / 6 7 8 \1 / Re p l a c e d St r in g 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 f o l l o w ed r ef er s t o r ep l a ced 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 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 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 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 M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 5 b er ty b er p l 1 translation-ru le 1 5 5 5 0 1 0 0 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 6 7 8 0 1 0 0 num b er ty p e: none num b er p l a n: none
5 5 0 1 0 0 p e: none a n: none
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 \)\(. . . . \)/ Ma t c h St r in g /^\(770 \)\( .\)/ Re p l a c e St r in g /6 78 \2 / Dia l e d St r in g 770 12 3 4 / 6 7 8 \2 /
Re p l a c e d St r in g 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 770 6 78 770 12 98 12 12 3 4 76 3 4 3 45 6 7 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 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 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 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 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 t o t h e r ep l a cem en t st r i n g . a r ep r o b a b ly i l l m a t ch t h e 770 i n i t s u n ch a n g ed . As cr o ss t o t h e a t ch st r i n g , t h ey a r e
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 M a tch ed w ith O rigina l num O rigina l num O rigina l num Router#test M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 7 b er ty b er p l voice rul e b er: 7 b er ty b er p l 1 1 translation-ru le 1 7 7 0 1 2 3 4 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 6 7 8 1 2 3 4 num b er ty p e: none num b er p l a n: none
7 0 1 2 3 4 p e: none a n: none
translation-ru le 1 7 7 0 9 8 7 6 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 6 7 8 9 8 7 6 num b er ty p e: none num b er p l a n: none
7 0 9 8 7 6 p e: none 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 M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 7 b er ty b er p l 1 translation-ru le 1 7 7 0 1 2 3 4 5 6 7 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 6 7 8 1 2 3 4 5 6 7 num b er ty p e: none num b er p l a n: none
7 0 1 2 3 4 5 6 7 p e: none a n: none
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 \(. . . . \)/ Ma t c h St r in g /^770 \( .\)/ Re p l a c e St r in g /6 78 \1/ Dia l e d St r in g 770 12 3 4 / 6 7 8 \1 / Re p l a c e d St r in g 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 M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 7 b er ty b er p l 1 translation-ru le 1 7 7 0 1 2 3 4 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 6 7 8 1 2 3 4 num b er ty p e: none num b er p l a n: none
7 0 1 2 3 4 p e: none 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 / Ma t c h St r in g /\(^ \)5 5 5 \( .\)/ Re p l a c e St r in g /\16 78 \2 / Dia l e d St r in g 40 8 5 5 5 0 10 0 Re p l a c e d St r in g 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 r ep l a cem en t st r i n g set i s p u l l ed t h r o u g d el i m i t t h e n u m b er l a cem en w i t h / a h fro m th 2 w i t h \2 t st r i n g . Th i s p r o b n d f o llo w t h a t w it h e m a t ch st r i n g . Th so t h a t t h e seco a b lylo \1. Y e 6 78 n d set 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 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 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 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 .
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 M a tch ed w ith O rigina l num O rigina l num O rigina l num Router#test M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 4 b er ty b er p l voice rul e b er: 4 b er ty b er p l 1 1 translation-ru le 1 4 0 8 5 5 5 0 1 0 0 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 4 0 8 6 7 8 0 1 0 0 num b er ty p e: none num b er p l a n: none
0 8 5 5 5 0 1 0 0 p e: none a n: none
translation-ru le 1 4 0 4 5 5 5 1 2 3 4 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 4 0 4 6 7 8 1 2 3 4 num b er ty p e: none num b er p l a n: none
0 4 5 5 5 1 2 3 4 p e: none 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 / Ma t c h St r in g /\(^.* \)0 10 0 / Th i s r u l e m m a t ch es t h a cr o ss set u se t h e r ep 9195 5 5 5 0 6 78 0 7770 40 45 5 5 10 10 10 5 5 0 0 0 a t ch es f r ed ig its0 1fro m th l a cem en Re p l a c e St r in g /\10 199/ o m 10 0 em t st r Dia l e d St r in g 5 5 5 0 10 0 / \1 0 1 9 9 / Re p l a c e d St r in g 5 5 5 0 199
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 . 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 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 in g ?
0 10 0
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 5 0 6 78 0 7770 40 45 5 5 0 199 199 199 199 5 5 0 199
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 M a tch ed w ith O rigina l num O rigina l num O rigina l num Router#test M a tch ed w ith O rigina l num O rigina l num O rigina l num Router#test M a tch ed w ith O rigina l num O rigina l num O rigina l num Router#test M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 9 b er ty b er p l voice rul e b er: 5 b er ty b er p l voice rul e b er: 7 b er ty b er p l voice rul e b er: 4 b er ty b er p l 1 1 1 1 translation-ru le 1 9 1 9 5 5 5 0 1 0 0 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 9 1 9 5 5 5 0 1 9 9 num b er ty p e: none num b er p l a n: none
1 9 5 5 5 0 1 0 0 p e: none a n: none
translation-ru le 1 5 5 5 0 1 0 0 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 5 5 5 0 1 0 9 9 num b er ty p e: none num b er p l a n: none
5 5 0 1 0 0 p e: none a n: none
translation-ru le 1 7 7 0 0 1 0 0 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 7 7 0 0 1 9 9 num b er ty p e: none num b er p l a n: none
7 0 0 1 0 0 p e: none a n: none
translation-ru le 1 4 0 4 6 7 8 0 1 0 0 T ra ns l a ted T ra ns l a ted T ra ns l a ted num b er: 4 0 4 6 7 8 1 0 9 9 num b er ty p e: none num b er p l a n: none
0 4 6 7 8 0 1 0 0 p e: none 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 / Re p l a c e St r in g /912 0 15 5 5 2 / ty p e unk now n na tiona l Re p l a c e d St r in g 912 0 15 5 5 2 0 0 1 t yp e n a t i o n a l
Ma t c h St r in g /^2 /
Dia l e d St r in g 2 0 0 1
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 M a tch ed w ith O rigina l num O rigina l num O rigina l num
11
0 0 1 p e: a n:
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
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 unk now n is d n Ma t c h St r in g /^2 / Re p l a c e St r in g /912 0 15 5 5 2 / Dia l e d St r in g 2 0 0 1 ty p e unk now n na tiona l p l a n
Re p l a c e d St r in g 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 M a tch ed w ith O rigina l num O rigina l num O rigina l num voice rul e b er: 2 b er ty b er p l 1 translation-ru le 1 2 0 0 1 unk now n unk now n T ra ns l a ted T ra ns l a ted T ra ns l a ted ty p e na tiona l num b er: 9 1 2 0 1 5 5 5 2 0 0 1 num b er ty p e: na tiona l num b er p l a n: is d n
0 0 1 p e: a 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 na me. Use t h i s co m m a n d i n g l o b a l co Th e na me p o r t i o n o f t h e co m m a n d ca 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 o f t w o co m n f ig u r a tio n n b eu p to u lt v a lu ef o 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 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. 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 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 . p t i o n s. Th ey a r e t r a n s l a t e c t c a l l e d t ra ns l a t i o n rul e# , 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 r u l e t h a t yo u w a n t t o a sso ci a r e t r a n sl a t ed , t h e ca l l ed 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 n d o f te b er
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 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 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 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 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 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 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
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
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 In t h e ex a m p l e, v o i ce t r a n b een cr ea t ed w i t h t h e n a m co m m a n d t r a n s l a t io n p r o t o t h e d i a l p eer w i t h t h e co sl a t i o eP S f il e o m m a n r TN u t n d u le1h o u t,a g o in g tra n s a sb n d v P ST l a t io
P S T N ou 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 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 b een cr ea co m m a n d v o i ce p o r t m p t ed tra 1/0 l e, v o i ce t r a n sl a t i o n r u l e 3 w i t h t h e n a m e P S TN i n , a n s l a t e in c o m in g P ST N in :0 w i t h t h e co m m a n d t r a n 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 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 . 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 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
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 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 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 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 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 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 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 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. p l e so l u t i o n i s t o f i g u r e a seco n d u w a n t t h e en d t sen d s ca l l s o u 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 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 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 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 sen d ca l l s o v er t h e IP W AN , t h e P S TN . Th e p r o b l em i s a k e p r o v i si o n s i n t h e d i a l 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 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 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 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 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 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 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 .
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 b em a Th e v 0 0 13 0 a u ser a t B r a n t ch ed , si n ce i t o ic e t r a n s l a t io 13 0 13 0 0 1 a n d ch 2 p h a sth n -p r o sen d l a ces a ca l l t o e sa m e d est i n f il e o u t g o in g t h e ca l l o u t t o B ra n a tio n b r a n th eP 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 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. 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 S TN . e sa a n d co m . Th m e r esu l t b t h e P S TN m a n d in p la ef o llo w in g u t w it h w ith t h ce o f co n f i g o u t t h e v o i ce t r a n sl a t i o n r u e h i g h est p r ef er en ce g o i n g t h e v o i ce t r a n sl a t i o n r u l e t o u r a t i o n ex a m p l e sh o w s h o w l e. Y o u co u l d t o t h e IP p r ef i x t h e th isis
Th er e i s a n a l t er n a t i v e m et h o d cr ea t e t w o d i a l p eer s t h a t p o i n t W AN d i a l p eer . Y o u co u l d t h en r eq u i r ed d i g i t s t o p l a ce t h e ca l l a cco m p l i sh ed . d ia l -p eer v oice 3 0 0 d es tina tion-p a ttern s es s ion ta rget ip v 4 : ! d ia l -p eer v oice 3 0 0 d es tina tion-p a ttern 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 !
o f a ch i ev i n g t h t o t h e IP W AN u se t h e p r ef i x o v er t h e P S TN
v oip 3 . . . 1 0 . 1 . 5 . 3 p ots 3 . . .
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 ch a n g ed , a d ig it d ia lin g d i f f er en t f r o
a r i o , B r a n ch 1 h a s m l t h o u g h t h e ex t en si o o v er t h e IP W AN , b m t h e ex t en si o n n u m
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 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 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 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 w i t h t h e n a m e b r a n ch 1p st n , a n d t h 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 d ig it D a 3 .N w ith o u ! 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 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 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 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 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 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 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 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 rul e 1 / ^ 3 0 1 ! v oice tra ns l tra ns l a te ca ! ! a tion-rul e 3 5 5 5 \(. . . . \)/
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 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 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 s M a n a g er E x p r ess a t B r a n ch 1. Th e v
eth e to th e r a n ch o i ce
/ \1 /
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 m a y m a t ch ei t h er d ia l -p e e r v o ic e 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 si g n a l t o t h e ca l l er , b eca u se t h e n u 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 o 4 d i g i t s, t h e g a t ew a y ca n n o w m
e 10 d i g i t s v o ic e 1 a f a st b u sy t h e v o i ce y t h e P S TN
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 .