Professional Documents
Culture Documents
Manipulation
VoIP POTS
1. Match outbound dial peer
1. Global voice translation profiles
2. Dial-peer voice translation
2. Number expansion
profile
3. Match inbound dial peer
3. CLID
4. CLID
4. Digit strip
5. Dial peer voice translation profile
5. Prefix digits
6. Forward digits
Dial peer 1 will match first. Only the Dial peer 2 will match first. The
collected digits of 555 will be collected digits of 5550124 will be
forwarded. forwarded.
PSTN
PBX
Ext.1234
Transmitted number: Dialed number:
1234 1234
PSTN
281-555-1234
num-exp 5551... 2815551...
dial-peer voice 2000 pots
destination-pattern 2815551...
no digit-strip
port 0/1:23
PSTN
Phone1-1 H.323 Gateway
2001 DID: 4085552XXX 3125550123
Command DNIS
no digit-strip 913125550123
digit-strip (default) 13125550123
forward-digits 4 0123
prefix 9 and digit-strip 913125550123
PSTN
2001
13125550123
1 2 3
User dials 0123. Number is expanded Phone rings.
to 13125550123 and
routed to PSTN.
FXS Port
WAN
0/0/0
voice-port 0/0/0
station-id name HQ Fax
station-id number 7135551003
VoiceEncapPeer91
peer type = voice, information type = voice,
description = `',
tag = 91, destination-pattern = `91..........',
answer-address = `', preference=0,
CLID Restriction = None
CLID Network Number = `5551234'
CLID Second Number sent
CLID Override RDNIS = disabled,
source carrier-id = `', target carrier-id = `',
source trunk-group-label = `', target trunk-group-label = `',
numbering Type = `unknown'
VoiceEncapPeer91
peer type = voice, information type = voice,
description = `',
tag = 91, destination-pattern = `91..........',
answer-address = `', preference=0,
CLID Restriction = clid strip
CLID Network Number = `'
CLID Second Number sent
CLID Override RDNIS = disabled,
source carrier-id = `', target carrier-id = `',
source trunk-group-label = `', target trunk-group-label = `',
numbering Type = `unknown'
1 2 3 4 5
11 12 13 14 15
Voice Port
VoIP Incoming
1 2 3 4 5
Incoming
Source IP Group Calling Rule 6 7 8 9 10
Outgoing
Trunk Group 11 12 13 14 15
NFAS
1 2 3 4 5
SRST Redirected
Rule 6 7 8 9 10
Called
11 12 13 14 15
\1
\ = escape character
PSTN
Gateway needs to
User dials 5125550101 add a 9 to route
to reach a PSTN phone. through the PSTN.
Search Replace
Input Output
Attribute Description
called Defines the translation profile rule for the called
number.
calling Defines the translation profile rule for the calling
number.
redirect-called Defines the translation profile rule for the redirect-
called number.
Processing Order
Applied
Inbound Outbound
Voice Port/NFAS 1 4
Trunk Group/Source IP 2 3
Global 3 1
Dial Peer 4 2
Redirected
Called voice translation-rule 1
rule 1 /^4085552/ /2/
voice translation-rule 2
rule 1 /^.*/ /9&/ type subscriber subscriber
rule 2 /^.*/ /91&/ type national national
rule 3 /^.*/ /9011&/ type international international
voice translation-profile pstn-in
translate called 1
translate calling 2
Called
Redirected
Called
voice translation-rule 1
rule 1 reject /^408555/
voice translation profile block
translate calling 1
dial-peer voice 111 pots
call-block translation-profile incoming block
call-block disconnect-cause incoming invalid_number
telephony-service
dialplan-pattern 1 4085552... extension-length 4 Easy to deploy, with
dial-peer voice 2001 pots some caveats on
destination-pattern 2001 dial peers that are
port 1/0/0 not ephone-dn.
X
PSTN
1/0/0
Cisco Unified CME
Analog Phone1-1 DID: 4085552XXX 13125550123
2001
2 1
3
Analog phone will No match on User dials
not ring. 4085552001 14085552001.
PSTN
FXS Phone1-1 Cisco Unified CME 13125550123
2001 DID: 4085552XXX
3 2 1
Profile modifies DNIS User dials
Phone rings.
to 2001 14085552001.
Rule 1:
Match pattern: ^555\(....\)
Replace pattern: 444\1
Match type: none Replace type: none
Match plan: none Replace plan: none
Rule 2:
Match pattern: 777
Replace pattern: 888
Match type: national Replace type: unknown
Match plan: any Replace plan: isdn
0/0 0/0
10.10.0.1
0/1
3XXX
num-exp 4… 7135554…
dial-peer voice 4000 pots
destination-pattern 7135554…
forward-digits all
port0/1:23 PSTN 2XXX
dial-peer voice 3000 voip
destination-pattern 3…
session target ipv4:10.10.0.1 713555XXXX 4XXX
dial-peer voice 3001 pots
destination-pattern 3…
prefix 12815553 5125551234 Houston
preference 1
port 0/1:23
dial-peer voice 911 pots
destination-pattern 911
no digit-strip
port 0/1:23
© 2008 Cisco Systems, Inc. All rights reserved. CVOICE v6.0—4-33
Configuring Translation Rules
voice translation-rule 1
rule 1 /^4085552/ /2/
voice translation-profile pstn-in
translate called 1
voice-port 0/1:23
translation-profile incoming pstn-in
dial-peer voice 2001 pots
destination-pattern 2001
port 1/0/0
Dials: 4085552001
PSTN
0/1 1/0/0
DID: 4085552XXX
FXS Phone1-1
2001