Prerequisites
Outbound routes are configured.
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.
- Extensions in a conference room can only dial internal extensions, all external calls are disallowed
- Certain extensions will be restricted from accessing outbound routes using long distance dial sequences
- 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:
Example 1 – Restrict external dialing for conference room extensions
In this scenario, dial access is restricted by denying access to certain outbound routes.
Add Context
To add a custom context, perform the following steps:
- Open UCX Administration
- From the PBX tab, select PBX Configuration
- From the left side column, select Custom Contexts
- On the Add Context page, enter a name in the Context field
- Enter text to describe what this context is for in the Description field
- 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:
- For the Set All To field, select Allow. This will preset all fields in this page to allow
- Set the field ENTIRE Basic Internal Dialplan to Deny
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
Assign Context
Next you proceed to the Extensions page to assign the custom context.
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 XSTIM extensions
Example 2 – Restrict long distance dialing for certain extensions
In this scenario, dial access is restricted by denying access based on dial sequence rules.
Add Context
To add a custom context, perform the following steps:
- Open UCX Administration
- From the PBX tab, select PBX Configuration
- From the left side column, select Custom Contexts
- On the Add Context page, enter a name in the Context field
- Enter text to describe what this context is for in the Description field
- 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.
- For the Set All To field, select Allow. This will preset all fields in this page to allow.
- 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
Assign Context
Next you proceed to the Extensions page to assign the custom context.
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 XSTIM extensions
Example 3 – 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.
Add Context
To add a custom context, perform the following steps:
- Open UCX Administration
- From the PBX tab, select PBX Configuration
- From the left side column, select Custom Contexts
- On the Add Context page, enter a name in the Context field
- Enter text to describe what this context is for in the Description field
- 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.
- For the Set All To field, select Deny. This will preset all fields in this page to deny.
- Set the field ENTIRE Basic Internal Dialplan to Allow Rules
- Select the individual features you want to Allow, for example Call Parking and ext-local. (Refer to Custom Contexts for details.)
- Set the field ALL OUTBOUND ROUTES to Allow Rules
- 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).
- Press the Submit button to save the changes
Assign Context
Next you proceed to the Extensions page to assign the custom context.
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.
Example 4 – 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.
Add Context
To add a custom context, perform the following steps:
- Open UCX Administration
- From the PBX tab, select PBX Configuration
- From the left side column, select Custom Contexts
- On the Add Context page, enter a name in the Context field (e.g. RestrictPaging)
- Enter text to describe what this context is for in the Description field (e.g. Cannot dial page groups)
- 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.
- For the Set All To field, select Allow. This will preset all fields in this page to allow.
- Set the field ENTIRE Basic Internal Dialplan to Deny
- Set the field ALL OUTBOUND ROUTES to Deny
- Select the feature or application that is restricted (e.g. ext-paging)
- Press the Submit button to save the changes
Assign Context
Next you proceed to the Extensions page to assign the custom context.
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.