cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4333
Views
15
Helpful
15
Replies

Dial Peers, Route Patterns and Translation Rules

Nightwolf_82
Level 1
Level 1

Hi guys, 

Just several questions related to dial peers and rout patterns.

Q1. Here are my POTS dial peers.

dial-peer voice 10 pots
description **10-DIGITS LOCAL DIALING**
destination-pattern 9[2-9].........
port 0/0/0:15
forward-digits 10
!
dial-peer voice 11 pots
description **LONG DISTANCE DIALING**
destination-pattern 91[2-9]..[2-9]......
port 0/0/0:15
forward-digits 0
prefix 1
!
dial-peer voice 12 pots
description **INTERNATIONAL CALLS**
destination-pattern 9011T
port 0/0/0:15
forward-digits 0
prefix 011
!
dial-peer voice 911 pots
description **EMERGENCY NUMBER**
destination-pattern 9911
no digit-strip
port 0/0/0:15
forward-digits 3 

NY-RTR#sh dialplan number 901161248192480
Macro Exp.: 901161248192480
No match, result=1

Could you please help me to understand why the number 901161248192480 is not matched to destination-pattern 9011T.

Q2. Here are my POTS dial peers from another router. 

dial-peer voice 3 pots
description **INTERNATIONAL DIAL-PEER**
destination-pattern 00011T
port 0/0/0:15
prefix 0011
!
dial-peer voice 4 pots
description **SYDNEY LOCAL 8-DIGITS NUMBERS**
destination-pattern 0........
port 0/0/0:15
forward-digits 8

SYD-RTR#sh dial-peer voice summary
dial-peer hunt 0
AD PRE PASS OUT
TAG TYPE MIN OPER PREFIX DEST-PATTERN FER THRU SESS-TARGET STAT PORT KEEPALIVE
1 voip up up 2... 0 syst ipv4:192.168.10.5
2 pots up up 0 down 0/0/0:15
3 pots up up 0011 00011T 0 up 0/0/0:15
4 pots up up 0........ 0 up 0/0/0:15
5 pots up up 0000 0 up 0/0/0:15
SYD-RTR#show dialplan number 0001112125165510
Macro Exp.: 0001112125165510

VoiceEncapPeer4
peer type = voice, system default peer = FALSE, information type = voice,
description = `**SYDNEY LOCAL 8-DIGIT NUMBERS**',
tag = 4, destination-pattern = `0........',

How can I get the number 0001112125165510 to match dial-peer 3 instead of dial-peer 4 which is intended for 8-digits numbers?

Q3. I have route patterns on CUCM and dial-peers on voice gateway that are duplicate.

0.0011! [Digit Discard – PreDot] – for International calls
0.000! [Digit Discard – PreDot] – for emergency number calls
0.XXXXXXXX – [Digit Discard – PreDot] – 8-digits for local calls

dial-peer voice 3 pots
description **INTERNATIONAL DIAL-PEER**
destination-pattern 00011T
port 0/0/0:15
prefix 0011
!
dial-peer voice 4 pots
description **SYDNEY LOCAL 8-DIGIT NUMBERS**
destination-pattern 0........
port 0/0/0:15
forward-digits 8
!
dial-peer voice 5 pots
description **EMERGENCY NUMBER**
destination-pattern 0000
no digit-strip
port 0/0/0:15
forward-digits 3

Is that correct approach to have both CUCM and voice gateway that works in pair to have absolutely identical route patterns and dial peers? 

Thank you. 

15 Replies 15

Hi guys,

I have the following voice translation rule and dial peers:

voice translation-rule 3
rule 1 /^\(3...\)$/ /6123333\1/
!
voice translation-profile PSTN-OUT
translate called 3
!
voice-port 0/0/0:23
translation-profile outgoing PSTN-OUT
!
dial-peer voice 3000 voip
description **OUGOING CALLS TO SYDNEY OVER WAN**
destination-pattern 3...
session protocol sipv2
session target ipv4:192.168.10.5
!
dial-peer voice 3001 pots
description **OUGOING CALLS TO SYDNEY OVER PSTN**
translation-profile outgoing PSTN-OUT
preference 1
destination-pattern 3...
port 0/0/0:23
prefix 9011

NY-RTR#test voice translation-rule 3 3002
Matched with rule 1
Original number: 3002 Translated number: 61233333002
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

I need 3ХХХ is automatically translated into 901161233333002 (9 - trunk code; 011 - international access code; 61233333002 country code + area code + number) in case WAN link is failed.

For some reasons it doesn't work. I disconnect WAN cable and try dial 3ХХХ, but it is not translated into 901161233333002.

Could you please check if voice translation rules and dial peers are configured properly?