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

Controlling outbound calls using different prefixes


Whenever we need to route outbound calls through different trunks, we can use different prefixes, or patterns, or use a set of passwords (PIN Sets), or even use a trunk sequence. When our PBX has more than one trunk or line and we want to route calls in a more intelligent way, we must take advantage of the features that we currently have in our system. In this section, we will show a set of recipes for controlling outbound calls.

Using different prefixes

The simplest way to differentiate routes is by creating outbound routes with different dialing prefixes. This is helpful if we'd like to route local calls through one specific trunk and long-distance calls through another.

How to do it…

Just create an outbound route with a different prefix. If we want to use the E1 trunks, we use prefix 9; if we'd like to call through the analog lines, we use prefix 8; and so on. The next picture shows the different routes associated to different trunks:

There...