Class of Restriction (COR)

This is a basic example of user restrictions on CME  or class of restrictions

dial-peer cor custom
name emerg
name national
name international
!

First you define the levels you are going to use , in this example I will use 3 levels emerg , national and international

!
dial-peer cor list national
member national
!
dial-peer cor list international
member international
!
dial-peer cor list emerg
member emerg
!

The above list will be used on the outgoing dial peer , that is the reason why each list has only one member. You can deduce that I will have at least 3 dial peers ,  (emergency , national and international)  . This is not obligatory , but it is the way I do my dial peers


!
dial-peer cor list basic
!
dial-peer cor list basicUser
member emerg
!
dial-peer cor list MidUser
member emerg
member national
!
dial-peer cor list supperuser
member emerg
member national
member international

The above cor list , define the rights I will give to the users

dial-peer voice 100 pots
corlist outgoing international
translation-profile incoming incoming
translation-profile outgoing outgoing
destination-pattern 004........
incoming called-number .
port 0/1/0:15
forward-digits all

The above dial peer  allow calls to go to international destinations , I applied the outgoing cor

ephone-dn 3 dual-line
number 103
label A103
name A103
corlist incoming MidUser

Ok , this is a tricky one , you may ask why I did the cor on the incoming  !!!
In fact CME create dial peer for every internal line , as we are calling from this phone  , CME will see the call as incoming

Notice that the above DN will have access only emergency and national dial peer

Advertisements
This entry was posted in CallManager, CallManager Express, LAB and tagged , , , . Bookmark the permalink.

8 Responses to Class of Restriction (COR)

  1. Anonymous says:

    hello, i’m very new with CME and cisco. I created a COR list named “test” and now I need to delete it, can’t find how to do it, could you please help me? thanks

    • Hello
      you can delete commands by using the word “no”

      for example to delete the "dial-peer cor list international" you would do :

      conf t
      dial-peer voice 100 pots
      no corlist outgoing international
      exit
      no dial-peer cor list international

  2. Aldie says:

    Hai There im very new to CME, i’d like to ask you about incoming and outgoing translation-profile on dial-peer. did you defined it first, well i already config the COR on CME but it seems not working, can you help me out ?

    thanks
    Aldie

  3. Aldie says:

    Dear Hossam,
    thank you for the reply, here’s my config :
    dial-peer voice 1 voip
    description ** cue auto attendant number **
    destination-pattern 797
    session protocol sipv2
    session target ipv4:1.1.1.2
    dtmf-relay h245-alphanumeric
    codec g711ulaw
    no vad
    !
    dial-peer voice 2 voip
    description ** cue voicemail pilot number **
    destination-pattern 799
    session protocol sipv2
    session target ipv4:10.249.4.66
    dtmf-relay sip-notify
    codec g711ulaw
    no vad
    !
    dial-peer voice 10 pots
    trunkgroup Analog-Line
    description Outgoing Line via Analog Line
    preference 2
    destination-pattern 9T
    !
    dial-peer voice 101 pots
    description ** E1 incoming calls dial-peer **
    translation-profile incoming CALLED
    incoming called-number .
    direct-inward-dial
    !
    dial-peer voice 100 pots
    description #### DID ####
    translation-profile incoming CALLED
    preference 1
    destination-pattern 9T
    direct-inward-dial
    port 0/0/0:15
    !
    dial-peer voice 110 pots
    corlist outgoing call-local
    description **FXO outgoing for local calls**
    translation-profile outgoing discard-digit-9
    destination-pattern 9[2-9]T
    port 0/0/0:15
    !
    dial-peer voice 111 pots
    corlist outgoing call-mobile
    description **FXO Mobile Call**
    translation-profile outgoing discard-digit-9
    destination-pattern 908T
    port 0/0/0:15
    prefix 08
    !
    dial-peer voice 112 pots
    corlist outgoing call-longdistance
    description **long distance**
    translation-profile outgoing discard-digit-9
    destination-pattern 90[2-7]T
    port 0/0/0:15
    prefix 0
    !
    dial-peer voice 113 pots
    corlist outgoing call-international
    description **international call**
    translation-profile outgoing discard-digit-9
    destination-pattern 900T
    port 0/0/0:15
    prefix 00

    Class of Restriction
    name: longdistance
    name: international
    name: mobile-phone
    name: local

    COR list
    member: longdistance
    member: international
    member: mobile-phone
    member: local

    COR list
    member: longdistance
    member: mobile-phone
    member: local

    COR list
    member: mobile-phone
    member: local

    COR list
    member: local

  4. Hello

    please see my remarks

    dial-peer voice 100 pots
    description #### DID ####
    translation-profile incoming CALLED
    preference 1
    destination-pattern 9T >>>> this will be used for outgoing
    direct-inward-dial
    port 0/0/0:15 >>> you are using this port which is E1

    dial-peer voice 111 pots
    corlist outgoing call-mobile
    description **FXO Mobile Call** >>>>>>>>>the description seems to be wrong , you are using E 1 port and not FXO port
    translation-profile outgoing discard-digit-9
    destination-pattern 908T
    port 0/0/0:15
    prefix 08

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s