Table of Contents

CCME Call Blocking

Configuration

<note important>If you specify 06:00 to 07:00, call blocking will start at 6:00 and stop at 07:00:59 about 59s after 07:00 which might not be what you want</note> <note important>The blocking time is based on the router local time and not the time on the phone. Hence it will be a good idea to configure timezone under telephony-service to make the phone in sync with the router</note>

telephony-service
! *** OR
ephone-template 1
!
  after-hours date jan 1 00:00 00:00
  after-hours date dec 25 00:00 00:00
  after-hours day mon 19:00 07:00
  after-hours day tue 19:00 07:00
  after-hours day wed 19:00 07:00
  after-hours day thu 19:00 07:00
  after-hours day fri 18:00 23:59
  after-hours day sat 00:00 00:00
  after-hours day sun 00:00 07:00
  !
  after-hours block pattern 1 91900....... 7-24
  after-hours block pattern 2 9011!# 7-24
  after-hours block pattern 3 91[2-9]..[2-9].......
  !
  after-hour pstn-prefix 1 9

Exemption

Override code

telephony-service
  after-hours override-code 1234

Pin Override

ephone 2
  pin 1234
telephony-service
  login timeout 10 

Exempt SCCP Phone

ephone-template 7
  after-hours exempt
ephone 1
  after-hours exempt

Exempt SIP Phone

voice register template 7
  after-hours exempt
voice register pool 1
  after-hours exempt

Exempt Dial Peer

dial-peer voice 1 voip
  paramspace callsetup after-hours-exempt true 

Debug

CCME_Router#show ephone login 

ephone 1        Pin enabled:local       Logged-in:TRUE
ephone 2        Pin enabled:FALSE
ephone 3        Pin enabled:FALSE
ephone 4        Pin enabled:FALSE
ephone 5        Pin enabled:FALSE
ephone 6        Pin enabled:FALSE
CCME_Router#