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

Installing the Custom-Context module


For this recipe, we will use the Custom-Context module, which is a third-party module developed by the FreePBX community. This module allows us to create contexts to which extensions will subscribe. In Asterisk, a context is a part of the dialplan that executes certain actions. The contexts can work independently from each other or can be included together. Using Custom-Context, we can create as many contexts as desired. With this module, we can restrict extensions to access certain outbound routes/trunks statically or in a specific period of time. For our example, we will restrict one extension to only internal and local calls. If the user of this extension tries to call a long-distance number, he will get a congestion tone.

How to do it…

  1. Download the module to our PC/workStation/laptop from this link: http://www.freepbx.org/support/documentation/module-documentation/third-party-unsupported-modules. Click on the Module Admin link and the Upload Module...