Assistance needed setting up international dial peer

Answered Question
Sep 12th, 2008
User Badges:

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?

Correct Answer by Chris Deren about 8 years 10 months ago

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

Correct Answer by Marwan ALshawi about 8 years 10 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Marwan ALshawi Fri, 09/12/2008 - 06:04
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

Correct Answer
Chris Deren Fri, 09/12/2008 - 06:45
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

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

Marwan ALshawi Fri, 09/12/2008 - 06:52
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

nice one Chris


but the one i have posted dose the work as well right !

Chris Deren Fri, 09/12/2008 - 06:55
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

sure, but why over complicate things when there is a simpler solution :-)


Chris

pfc-corporate Fri, 09/12/2008 - 06:59
User Badges:

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 ?

Chris Deren Fri, 09/12/2008 - 07:04
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

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

Marwan ALshawi Fri, 09/12/2008 - 07:05
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

Actions

This Discussion