Tuesday 18 September 2012

COR Configuration on Cisco Call Manager Express

The class of restrictions (COR) functionality provides the ability to deny certain call attempts based on the incoming and outgoing class of restrictions provisioned on the dial peers. This functionality provides flexibility in network design, allows users to block calls (for example, international numbers), and applies different restrictions to call attempts from different originators.

COR is used to specify which incoming dial peer can use which outgoing dial peer to make a call. Each dial peer can be provisioned with an incoming and an outgoing COR list. The incoming COR list indicates the capability of the dial peer to initiate certain classes of calls. The outgoing COR list
indicates the capability required for an incoming dial peer to deliver a call via this outgoing dial peer. If the capabilities of the incoming dial peer are not the same or a superset of the capabilities required by the outgoing dial peer, the call cannot be completed using this outgoing dial peer.

Configuration
!
voice class codec 1
 codec preference 1 g711ulaw
!
Trunk group for logical grouping of ports, configuration and joint management of multiple Ports
 trunk group FXO
  voice-class cause-code 1
 hunt-scheme longest-idle
!
Below  frequency & cadence values used in UAE. You guys can get from your local provider because it’s vary from provider to provider.

voice class custom-cptone UAE-Default
dualtone disconnect
  frequency 400
  cadence 400 350 225 525
!
voice-port 0/1/0
 trunk-group FXO
supervisory disconnect dualtone mid-call
 supervisory custom-cptone UAE-Default
 input gain 14
 timeouts interdigit 2
 timeouts call-disconnect 3
 timeouts wait-release 3
caller-id enable
 connection plar 203 

! (PLAR) is a feature used to automatically connect an endpoint to a predetermined destination number as soon as the line goes off-hook Like receptionist number)

voice-port 0/1/1
 trunk-group FXO
 supervisory disconnect dualtone mid-call
 supervisory custom-cptone UAE-Default
 input gain 14
 timeouts interdigit 2
 timeouts call-disconnect 3
 timeouts wait-release 3
 connection plar 203
 caller-id enable
!
voice-port 0/1/2
 trunk-group FXO
supervisory disconnect dualtone mid-call
 supervisory custom-cptone UAE-Default
 input gain 14
 timeouts interdigit 2
 timeouts call-disconnect 3
 timeouts wait-release 3
 connection plar 203
 caller-id enable
!
voice-port 0/1/3
 trunk-group FXO
supervisory disconnect dualtone mid-call
 supervisory custom-cptone UAE-Default
 input gain 14
 timeouts interdigit 2
 timeouts call-disconnect 3
 timeouts wait-release 3
 connection plar 203
 caller-id enable
!

We have to create condition like internal, mobile, and international under dial-peer cor custom. Same Like Partition in CUCM. Then we will use these conditions in outgoing & incoming corlist dial-peers.

!
dial-peer cor custom
 name internal
 name local
 name national
 name mobile
 name international
!
Below are the outgoing calls Corlist dial-peer configurations and will assign to outgoing dial-peers later.

dial-peer cor list internal
 member internal
!
dial-peer cor list local
 member local
!
dial-peer cor list national
 member national
!
dial-peer cor list mobile
 member mobile
!
dial-peer cor list international
 member international
!
Below are the incoming Corlist dial-peers same like CSS in the CUCM. These cor list dial-peers will  
assign to  ephon-dn  in CUCME configuration.

dial-peer cor list Restricted
 member internal
dial-peer cor list LocalCalls
 member internal
 member local
!
dial-peer cor list LongDistance
 member internal
 member local
 member national
member mobile
!
dial-peer cor list International
 member internal
 member local
 member national
 member mobile
 member international
!
dial-peer voice 1 pots
 trunkgroup FXO
 corlist outgoing local
 destination-pattern 9[19]..
 forward-digits 3
!
dial-peer voice 2 pots
 trunkgroup FXO
 corlist outgoing local
 destination-pattern 9[2-8][0-9][1-9]....
 forward-digits 7
!
dial-peer voice 3 pots
 trunkgroup FXO
 corlist outgoing mobile
 destination-pattern 905[056].......
 prefix 05
!
dial-peer voice 4 pots
 trunkgroup FXO
 corlist outgoing national
 destination-pattern 90[234679].......
 prefix 0
!
dial-peer voice 5 pots
 trunkgroup FXO
 corlist outgoing international
 destination-pattern 900T
 prefix 00
!
dial-peer voice 6 pots
 trunkgroup FXO
 corlist outgoing local
 destination-pattern 9600T
 prefix 600
!
dial-peer voice 7 pots
 trunkgroup FXO
 corlist outgoing local
 destination-pattern 9800T
 prefix 800
!
 We want to give full access to manager’s phone that’s why we have assigned the corlist international to Manager’s Phone.
!
Ephone-dn 1 dual-line
 Description “Manager Phone”
Number 100
Corlist incoming international
!
We want to give long distance access to common employees. So these guys can call within country
that’s why we have assigned the corlist national to these guys.
!
phone-dn 2 dual-line
 Description “common employees”
Number 150
Corlist incoming national
!
We want to give local calls access to pantry phones. So these phones can make local calls .that’s why we have assigned the corlist local to these guys.

Ephone-dn 3 dual-line
 Description “Pantry Phone”
Number 155
Corlist incoming local
!
We want to give internal calls access to Lobby phones. So these lobby phones can only make internal calls.that’s why we have assigned the corlist Restricted to these phones
!
Ephone-dn 4 dual-line
 Description “Lobby Phone
Number 200
Corlist incoming Restricted
!

Troubleshooting

You can use the Debug voip caapi inout   command for verification. This will allow you to see which
dial-peer is matching

4 comments:

  1. Hi,
    how could we implement that above dial plan in case of DAFZA where we need to Press 9 to get dial tone,than again Press 9 to go dial out

    ReplyDelete
  2. use secondary-dialtone 9

    ReplyDelete
  3. As a seasoned remote worker, I understand the importance of UCaaS. The ability to seamlessly connect with colleagues and clients through video conferencing, screen sharing, and other tools has revolutionized the way I work. With TECHOM's Unified Communication as a Service, businesses of any size can experience the benefits of greater flexibility, scalability, and cost-effectiveness in modernizing their communication systems. So, if you're looking to improve your remote work experience, UCaaS is the solution you've been searching for.

    ReplyDelete