Advanced Dial Plans
Modifying caller-id (ANI) information
Reasons to change caller-id
- Display four-digit extensions internally
- Display full number externally
- adding and removing “9” on external calls
Commands to change caller-id
- station-id (name/number) - voice port
- clid network-number - dial peer
- clid strip name - dial peer
- clid restrict - dial peer
Translation Rules
- Allow you to change called (DNIS) or calling (ANI) information
- similar to calling/called transformation in CUCM
- Uses regular expressions to transform
- Translation rules are created, places in profile, profile assigned
- Rules in the format of /match/ then /change/
- sub-rules can be created per rule
Rule Examples
!! Replace extension 4000 with 6500
rule 1 /^4000$/ /6500/
!! carry extension over - shortcut
rule 2 /^7...$/ /1800555&/
!! carry extension over - set zero
rule 3 /^7...$/ /1800555\0/
!! \( \) creates a set
!! add area code
!! match 9555.... carry over set 1 add 480 then carry over set 2
rule 4 /\(9\)\(555....\)/ /\1480\2/
!!Match anything
rule 5 /.*/ /1000/
!!Match anything except blank
rule 6 /.+/ /1000/
!! change extensions 7xxx to 8xxx
rule 7 /^7\(...\)$/ /8\1/
Extension to DID on failover configuration
voice translation-rule 1
rule 1 /^4\(...\)$/ /6195554\1/
voice translation-rule 2
rule 1 /\(^3...\)$/ /480555\1/
test voice translation-rule 1 4123
voice translation-profile PSTN_FAILOVER
translate called 1
translate calling 2
dial-peer voice 10 pots
destination-pattern 4...
preference 3
port 1/0/0
translation-profile outgoing PSTN_FAILOVER
Class of Restriction
- Requires more detailed dial-peers (no 9T for PSTN)
- Restrictions implemented via COR list
- Incoming dial-peer assigns incoming COR list
- Outgoing dial-peer assigns outgoing COR list
- If the outgoing COR list is a subset of the incoming COR, the call is forwarded
- If user does not have a COR list assigned, they can dial anything (no restrictions)
- Define COR custom tags
dial-peer cor custom
name 911call
name localcall
name ldcall
name internatcall
- Define outgoing COR lists
dial-peer cor list EMERGENCY
member 911call
dial-peer cor list LOCAL
member localcall
dial-peer cor list LONGDIS
member ldcall
dial-peer cor list INTERNAT
member internatcall
- Define incoming COR lists (assigns permissions to users)
dial-peer cor list LD
member 911call
member localcall
member ldcall
- Typical North America PSTN Dial plan with COR lists assigned
dial-peer voice 911 pots
description EMERGENCY_CALLING
destination-pattern 911
no digit-strip
corlist outgoing EMERGENCY
dial-peer voice 9911 pots
description EMERGENCY_CALLING
destination-pattern 9911
forward-digits 3
corlist outgoing EMERGENCY
dial-peer voice 10 pots
description 10-DIGIT-DIALLING-LOCAL
destination-pattern 9[2-9].........
corlist outgoing LOCAL
dial-peer voice 11 pots
description 11-DIGIT-DIALLING-LONG-DISTANCE
destination-pattern 91[2-9].........
prefix 1
corlist outgoing LONGDIS
dial-peer voice 12 pots
description INTERNATIONAL
destination-pattern 9011T
prefix 011
corlist outgoing INTERNAT
- COR list assigned to a user
dial-peer voice 5000 pots
destination-pattern 5000
port 1/0/1
corlist incoming