Using the Custom-Context module to restrict outbound calls
As mentioned in the previous recipe, we will use the Custom-Context module to restrict the outgoing calls.
Before creating our restricting rules, we will first add a new context as shown below.
Click on the Custom Context | Add Context link.
Add a custom context, entering the desired name and its description. For this recipe, we will use the name Internal Calls.
Press the Save button. The options related to this context will appear.
For the purposes of this recipe, we select Allow from the Set All To drop-down menu. This will grant the context access to all features and trunks. We will also grant access to a route that can only dial local calls.
Go to the ALL OUTBOUND ROUTES section.
Select which outbound route this context can use. We set the 9_E1 route (the only route that has access to local calls dialing 9 as a prefix) to the value Allow.
Set the other routes to Deny.
Click on the Submit button and on the...