Book Image

Elastix Unified Communications Server Cookbook

Book Image

Elastix Unified Communications Server Cookbook

Overview of this book

Table of Contents (24 chapters)
Elastix Unified Communications Server Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Description and Use of the Most Well-known FreePBX Modules
Addon Market Module
Asterisk Essential Commands
Asterisk Gateway Interface Programming
Helpful Linux Commands
Index

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.

Getting ready...

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.

How to do it…

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...