12-25-2008 04:19 AM - edited 03-15-2019 03:14 PM
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
Solved! Go to Solution.
12-25-2008 06:27 AM
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
12-25-2008 06:27 AM
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
12-25-2008 06:43 AM
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.
12-25-2008 06:53 AM
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
12-25-2008 07:09 AM
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?
12-25-2008 07:24 AM
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 :)
12-25-2008 07:20 AM
any ideas?
thanks
12-25-2008 08:28 AM
You could try this as well:
Router(config)#num-exp 0 93812121
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide