In Chapter 4, Knowing the Internal PBX Options and Configuration, recipe Installing the Custom-Context module, we learnt how to configure this module to allow or deny outbound calls to certain extensions. In this section, we will explain a general way to allow or deny the use of features, trunks, and outbound routes from the IP-PBX.
Select the context called Internal Calls.
Select Allow from the Set All To drop-down menu. This will grant the context access to all features and trunks, as shown in the next screenshot:
Go to the ALL OUTBOUND ROUTES section.
Select which outbound route this context can use.
Set the route 9_E1 (the only route that has access to local calls by dialing
9
as a prefix) and set the other routes to Deny.Save and apply the changes.
These steps are shown in the next screenshot:
Click on the Submit button and on the Apply Configuration Changes Here link:
Go to the PBX Configuration | Extensions menu.
Choose the extension to restrict...