Upgrade 3CX to v18 and get it hosted free!

Asterisk Management Portal Route Setup

Author image

freePBX :: Route Setup

This functionality was added in AMP 1.10.007

Outgoing calls in AMP are sent out using Trunks, according to the Outgoing Routing configuration.

Examples

Local calls on POTS, Long-distance on IAX2 (North America)

This is a basic setup with two trunks, with local calls on area code 613.

Configure ZAP trunk as follows:

Dial rules:
1613|NXXXXXX

Zap Identifier:
g0

This dial rule will match numbers “1613NXXXXX” and drop the “1613” to place the call locally (dialing 1+areacode on a POTS line generally causes Mabell to play an error message).

IAX trunk:

Dial rules:
1613+NXXXXXX
1+NXXNXXXXXX

Name:
myiaxprovider

Max Channels:
3

These rules will add “1613” to any 7-digit number, or 1 to a 10-digit number.

We also need two routes:

“local” route:

Dial patterns:
1613NXXXXXX
613NXXXXXX
1800NXXXXXX
1866NXXXXXX
1877NXXXXXX
1888NXXXXXX
NXXXXXX
911

Trunk priority:
ZAP/g0
IAX/myiaxprovider

This will send numbers dialed as “1613NXXXXXX” or “613NXXXXX”, toll-free numbers, 7-digit numbers, and 911 to be matched by this route. Calls will first be sent on our POTS lines, and if they’re all used up, our IAX trunk.

“longdistance” route:

Dial Patterns:
1NXXNXXXXXX
NXXNXXXXXX
011.

Trunk Priority:
IAX/myiaxprovider
ZAP/g0

Any numbers dialed as 10 or 11 digit long-distances numbers, as well as overseas calls will be sent on this route, using our IAX first. Since we set max channels to 3, after 3 calls, it will use our POTS line(s).

Two offices, extensions only

This example is just simply linking extensions at two offices, each with a * box. We’re only linking extensions, not sharing lines.

Let’s say we have the following extensions at each office:

  • Office A: 100-199 (with the exception of below)
  • Office B: 103, 104, 105, 119, 200-299,

At both offices, we need to setup an IAX trunk, and put the context as from-internal.

Route dial pattern at office A:

10[3-5]
119
2XX

Route dial pattern at office B:

10[126-9]
11[0-8]
2XX

Then at both, set the only trunk to be the IAX trunk configured to connect at the other office. By setting max channels on those trunks, you can limit calls. Once the limit has been reached (with no other trunks to use) the caller will just hear a busy signal.


See also

Back to freePBX


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.