====== CCME Call Blocking ====== * Can define globally on telephony-service or on ephone-template on specific ephone * Call blocking based on date or time of day * You can block calls for up to 32 patterns * You can block calls based on: * The time of day * The day of the week * The date * You can exempt individual phones * You can define a PIN to allow call blocking to be overwritten * Ephone and ephone-template configurations take precedence over telephony-service configuraton * The presence of any block pattern on an ephone template will invalidate/replaces any other block pattern under telephony service for that phone * The opposite is not true of override codes; codes will work in both telephony service and templates. * Call blocking take place during the dial process prior to selecting the outgoing dial peer. Calls that pass Call Blocking could still be blocked using COR. {{ccme-cblock.png|}} ===== Configuration ===== * Can apply globally or on a template * Define after hour date and time * Define pattern to block * The 7x24 option will enable blocking all the time and no user can override the rule with the override code. The rule will be applied all the time regardless of whether it is after-hour time? * Can creates up to 4 PSTN access code * Call blocking based on PSTN access code 9. If we dial a 9 to get an outside line 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 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 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 ==== * Creates a global after hour call blocking number * Dial the override code + blocked number to override the blocking for this call * e.g. dial **1234**985294114090 telephony-service after-hours override-code 1234 ==== Pin Override ==== * And can assign a local pin on a particular phone to temporary bypass the blocking. * While idle, press the login softkey and enter the defined pin number ephone 2 pin 1234 * This must be accompanied by the login timeout command which specify automatic logout in minutes. telephony-service login timeout 10 ==== Exempt SCCP Phone ==== * To exempt certain phones based on a template * The command will exempt the phone from any effect from Call Blocking ephone-template 7 after-hours exempt * To exempt a particular phone ephone 1 after-hours exempt ==== Exempt SIP Phone ==== * To exempt certain phones based on a template * The command will exempt the phone from any effect from Call Blocking voice register template 7 after-hours exempt * To exempt a particular phone voice register pool 1 after-hours exempt ==== Exempt Dial Peer ==== * To exempt a dial-peer dial-peer voice 1 voip paramspace callsetup after-hours-exempt true ===== Debug ===== * To see which ephone is login with the pin that overwrite after hour blocking 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#