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

Translation Patterns

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
New Member

Re: Translation Patterns

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

7 REPLIES
New Member

Re: Translation Patterns

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

New Member

Re: Translation Patterns

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.

New Member

Re: Translation Patterns

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

New Member

Re: Translation Patterns

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?

New Member

Re: Translation Patterns

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 :)

New Member

Re: Translation Patterns

any ideas?

thanks

Re: Translation Patterns

You could try this as well:

Router(config)#num-exp 0 93812121

168
Views
0
Helpful
7
Replies
CreatePlease to create content