cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
497
Views
0
Helpful
7
Replies

Translation Patterns

blackswans
Level 1
Level 1

Hi all,

Can I make something like this?

When the user presses 0 from his phone it will dial a number like 0123123123.

I know I can do it with translation pattern, the pattern will change the 0 -> 0123123123. But when the user dials another number that has 0 in it like 90123445 will the 0 in this number will also be translated or not?

thanks

1 Accepted Solution

Accepted Solutions

Yagami_Light
Level 1
Level 1

you just have to write like this:

rule 1 /^0$/ /0123123123/

^$ - means that it will translate only exact number

^ - begin of number

$ - end of number

View solution in original post

7 Replies 7

Yagami_Light
Level 1
Level 1

you just have to write like this:

rule 1 /^0$/ /0123123123/

^$ - means that it will translate only exact number

^ - begin of number

$ - end of number

801-CME(config-translate)# Rule 0 /^0$/ /93812121/

Incorrect format for Translation Match Pattern

regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$

Invalid match pattern string input /^0$/

It seems it doesnt work... something is wrong.

KRU(config)#voice translation-rule 7800

KRU(cfg-translation-rule)#rule ?

<1-15> Translation rule tag

try tag 1 :)

and as you can see, config type is other (cfg-translation-rule)

what translation command do you use?

there is enough information about translation rules

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

voice translation-rule 1

rule 1 /^0$/ /93812121/

ephone-dn 6 dual-line

number 100

translate called 1

this doesnt work... can you see what is wrong?

voice translation-profile trans

translate called 1

voice translation-rule 1

rule 1 /^0$/ /93812121/

ephone-dn 6 dual-line

number 100

dial-peer voice 1 pots

translation-profile outgoing trans

destination-pattern 0

I understand that it can be done easier, but we do like this 'cause of our configuration :)

any ideas?

thanks

You could try this as well:

Router(config)#num-exp 0 93812121

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: