Restrict dial access using Custom Contexts

Table of Contents

1. Prerequisites
2. Introduction
3. Restrict external dialing for conference room extensions
4. Restrict long distance dialing for certain extensions
5. Restrict long distance dialing to for certain extensions to Canada Only
6. Restrict dialing to specific feature or application for certain extensions

1. Pre-Requisites

Outbound routes are configured.

2. Introduction

Custom Contexts allow dial plan access restrictions to be defined on a per extension or trunk basis. The flow chart below illustrates how custom context is applied.

We will use three scenarios to show how access restrictions can be defined for specific extensions using custom contexts.

  1. Extensions in a conference room can only dial internal extensions, all external calls are disallowed
  2. Certain extensions will be restricted from accessing outbound routes using long distance dial sequences
  3. Certain extensions will be restricted from dialing a specific feature or application

There are two fields in the Custom Context panel that must always be set to the same value for this feature to work. These two fields are highlighted in RED and BOLD:

  • ENTIRE Basic Internal Dialplan
  • ALL OUTBOUND ROUTES

3. Restrict external dialing for conference room extensions

In this scenario, dial access is restricted by denying access to certain outbound routes.

Step One: Add Context

To add a custom context, perform the following steps:

  1. Open the UCX Web-based Configuration Utility
  2. From the PBX tab, select PBX Configuration
  3. From the left side column, select Custom Contexts
  4. On the Add Context page, enter a name in the Context field
  5. Enter text to describe what this context is for in the Description field
  6. Press the Submit button to create the new context

On the right side column, look for the new context and select it.

The following steps will define what this context allows and denies:

  1. For the Set All To field, select Allow. This will preset all fields in this page to allow
  2. Set the field ENTIRE Basic Internal Dialplan to Deny

NOTE: Setting the ENTIRE Basic Internal Dialplan to DENY will not disable the internal dial plan. It simply implies that the internal dial plan will be affected by rule(s) further down in the panel.

3. Set the field ALL OUTBOUND ROUTES to Deny

4. All outbound routes that have been configured on the system will be listed under the Outbound Routes section of the panel. Depending on what outbound restriction you want to apply, select Deny for the desired route(s).

5. Press the Submit button to save the changes

Step Two: Assign Context

Next you proceed to the Extensions panel to assign the custom context. (See Extensions in the Administrative Guide for details on configuring extensions.)

Go to the Call Restrictions field under the Device Options section, the newly created custom context will show up in the pull down list.

Select the desired context and press the Submit button to save the changes.

Device Options for SIP extensions

Device Options for Nortel extensions

4. Restrict long distance dialing for certain extensions

In this scenario, dial access is restricted by denying access based on dial sequence rules.

Step One: Add Context

To add a custom context, perform the following steps:

  1. Open the UCX Web-based Configuration Utility
  2. From the PBX tab, select PBX Configuration
  3. From the left side column, select Custom Contexts
  4. On the Add Context page, enter a name in the Context field
  5. Enter text to describe what this context is for in the Description field
  6. Press the Submit button to create the new context

On the right side column, look for the new context and select it.
Enter the dialing sequence you want to restrict in the Dial Rules box (e.g. 1NxxNxxxxxx)

The following steps will define what this context allows and denies.

  1. For the Set All To field, select Allow. This will preset all fields in this page to allow.
  2. Set the field ENTIRE Basic Internal Dialplan  to Deny Rules

3. Set the field ALL OUTBOUND ROUTES to Deny Rules

4. All outbound routes that have been configured on the system will be listed under the Outbound Routes section of the panel. Depending on which route you want to apply the restriction, select Deny Rules for the desired route(s).

5. Press the Submit button to save the changes

Step Two: Assign Context

Next you proceed to the Extensions panel to assign the custom context. (See Extensions in the Administrative Guide for details on configuring extensions.)

Go to the Call Restrictions field under the Device Options section, the newly created custom context will show up in the pull down list.

Select the desired context and press the Submit button to save the changes.

Device Options for SIP extensions

Device Options for Nortel extensions

5. Restrict long distance dialing for certain extensions to Canada Only

In this scenario, dial access is restricted by allowing access based on dial sequence rules and denying all others.

Step One: Add Context

To add a custom context, perform the following steps:

  1. Open the UCX Web-based Configuration Utility
  2. From the PBX tab, select PBX Configuration
  3. From the left side column, select Custom Contexts
  4. On the Add Context page, enter a name in the Context field
  5. Enter text to describe what this context is for in the Description field
  6. Press the Submit button to create the new context


On the right side column, look for the new context and select it.
Enter the dialing sequence you want to ALLOW in the Dial Rules box.
(Note: You have to list all the possible area codes that you want to allow in Canada.)

The following steps will define what this context allows and denies.

  1. For the Set All To field, select Deny. This will preset all fields in this page to deny.
  2. Set the field ENTIRE Basic Internal Dialplan  to Allow Rules
  3. Select the individual features you want to Allow, for example Call Parking and ext-local. (Refer to Custom Contexts for details.)
  4. Set the field ALL OUTBOUND ROUTES to Allow Rules
  5. All outbound routes that have been configured on the system will be listed under the Outbound Routes section of the panel. Depending on which route you want to apply the restriction, select Allow Rules for the desired route(s).
  6. Press the Submit button to save the changes


Step Two: Assign Context

Next you proceed to the Extensions panel to assign the custom context. (See Extensions in the Administrative Guide for details on configuring extensions.)

Go to the Call Restrictions field under the Device Options section, the newly created custom context will show up in the pull down list.

Select the desired context and press the Submit button to save the changes.

6. Restrict dialing to specific feature or application for certain extensions

In this scenario, dial access is restricted by denying access to a specific feature or application under the internal dialplan.

Step One: Add Context

To add a custom context, perform the following steps:

  1. Open the UCX Web-based Configuration Utility
  2. From the PBX tab, select PBX Configuration
  3. From the left side column, select Custom Contexts
  4. On the Add Context page, enter a name in the Context field (e.g. RestrictPaging)
  5. Enter text to describe what this context is for in the Description field (e.g. Cannot dial page groups)
  6. Press the Submit button to create the new context

On the right side column, look for the new context and select it. The following steps will define what this context allows and denies.

  1. For the Set All To field, select Allow. This will preset all fields in this page to allow.
  2. Set the field ENTIRE Basic Internal Dialplan  to Deny
  3. Set the field ALL OUTBOUND ROUTES to Deny
  4. Select the feature or application that is restricted (e.g. ext-paging)
  5. Press the Submit button to save the changes

Step Two: Assign Context

Next you proceed to the Extensions panel to assign the custom context. (See Extensions in the Administrative Guide for details on configuring extensions.)

Go to the Call Restrictions field under the Device Options section, the newly created custom context will show up in the pull down list.

Select the desired context and press the Submit button to save the changes.

Page Tags: 
How-To