09-12-2008 05:41 AM - edited 03-15-2019 01:14 PM
Hello all, I need some assistance setting up an international dial peer on a UCME system.
Users are required to prefix outbound calls by dialing "8", but the 8 is not necessary to actually make the call over the outbound PRI. This is strictly an internal thing so I can route calls over different PRI's based on the prefix.
Since international is variable length, I need to use destination-pattern 8011T, but my 8 prefix throws a wrench at me. Normally, on my fixed length dial peers, I can use forward-digits so the 8 prefix is not forwarded.
Through some docs, I've found one possible solution using a translation-rule as follows:
dial-peer voice 200 pots
destination-pattern 011T
port 0/0/1:23
translate-outgoing called 1
!
translation-rule 1
rule 0 ^80110 0110
rule 1 ^80111 0111
rule 2 ^80112 0112
rule 3 ^80113 0113
rule 4 ^80114 0114
rule 5 ^80115 0115
rule 6 ^80116 0116
rule 7 ^80117 0117
rule 8 ^80118 0118
rule 9 ^80119 0119
!
Will this work properly on a pots dial peer? The example used it on a voip peer.
Is there another/better way to do this?
Solved! Go to Solution.
09-12-2008 06:04 AM
ofcourse it works
but do it like
voice translation-rule 1
rule 1 /^80110/ /0110 /
rule 2 /^80111/ /0111 /
.
.
.
.
then
voice trnaslation-profile profile1
translate called 1
dial-peer voice 200 pots
destination-pattern 8011T
port 0/0/1:23
translation-profile outgoing profile1
forward-digits all
note: the above outbound pots dial-peer will do the translation first then will use the forward-digits all.
good luck
if helpful Rate
09-12-2008 06:45 AM
Simply do this:
dial-peer voice 200 pots
destination-pattern 8011T
port 0/0/1:23
prefix 011
this way 8011 will be striped, but 011 will be prefixed.
HTH,
Chris
09-12-2008 06:04 AM
ofcourse it works
but do it like
voice translation-rule 1
rule 1 /^80110/ /0110 /
rule 2 /^80111/ /0111 /
.
.
.
.
then
voice trnaslation-profile profile1
translate called 1
dial-peer voice 200 pots
destination-pattern 8011T
port 0/0/1:23
translation-profile outgoing profile1
forward-digits all
note: the above outbound pots dial-peer will do the translation first then will use the forward-digits all.
good luck
if helpful Rate
09-12-2008 06:45 AM
Simply do this:
dial-peer voice 200 pots
destination-pattern 8011T
port 0/0/1:23
prefix 011
this way 8011 will be striped, but 011 will be prefixed.
HTH,
Chris
09-12-2008 06:52 AM
nice one Chris
but the one i have posted dose the work as well right !
09-12-2008 06:55 AM
sure, but why over complicate things when there is a simpler solution :-)
Chris
09-12-2008 06:59 AM
Thanks guys. Always nice to know all the options.
I take the prefix options modifes the destination-pattern so that any specified digits are removed and replaced by the prefix, and then any wildcard digits (such as . or a T) are appended ?
09-12-2008 07:04 AM
The way pots dial-peers work is they strip everything that's explicitly matched, so in your example since you had 8011T, 8011 is explicitely matched thus stripped. Wild cards are preserved, so if you had . T or [23] it will be preserved. Prefix simply prefixes digits after the stripping is performed.
HTH,
Chris
09-12-2008 07:05 AM
with pots dial peer any digits explicitly matched will be removed when the call gose outbound.. so with 8011... ot T and the user dial 801112345
the 8011 will be removed
with the prefix 011 the 011 will be prepended to to the rest of the dialed number then will be 01112345
with the trnalsation i have sent u the translation dose the job and the forward digit all just send the whol resulted number
thanks for rating and good luck
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