Outbound Routes Configuration Examples
Sample Route Configurations:
Listed below are some sample configurations that you might want to include in your Outbound Routes
1. Route Name: EMERGENCY
Note: This route will be used to route emergency calls to 911.
Route CID: YOURNUMBER
Route Type: EMERGENCY CHECKED (be sure that each extension has an emergency Caller ID set in the Extensions Module)
Dial Patterns that will use this Route:
Patterns () + | 911 () + | 811 | What it does: 911 calls will follow this route OPTIONAL: 811 calls will follow this route. You can include this to allow you to test the route without actually calling 911. If you do this, be sure to redefine 811 to dial a test number in the Trunk Dialed Number Manipulation Rules. |
---|
Trunk Sequence: Select the Trunks that you'd like FreePBX/Asterisk to attempt to use when the number dialed by one of your phones matches the Dial Patterns. FreePBX will try each Trunk in the order you list them until it is able to complete the call.
Notes:
Emergency Routes should always be the first Routes in the Outbound Routes list to ensure that all users can reach them.
2. Route Name: Restricted
This route will prevent restricted calls from being placed. The Dial Patterns suggested below will prevent calls to international numbers and to 900 and 976 numbers. If you want to permit such calls, you can remove the lines in the Dial Patterns, below.
Dial Patterns that will use this Route:
Patterns: () + | 011. / () + | 900XXXXXXX / () + | 1976XXXX / () + | 1XXX976XXXX / () + | 900XXXXXXX / () + | 976XXXX / () + | XXX976XXXX / | What it does: This line will cause any number that starts with 011 to use this route. Delete if you want to allow international calls. This line will cause 900 number calls to use this route. This line will cause 1976 number calls to use this route. This line will cause 1 + Area Code + 976 + numbers to use this route. This line will cause 900 + XXX + XXXX Numbers to use this route. This line will cause 976-XXXX numbers to use this route. This line will cause Area Code + 976 + XXX numbers to use this route |
---|
Trunk Sequence: DeadRestricted
Note: Create a SIP Trunk called DeadRestricted. Check the Disable Trunk box and put "DeadRestricted" in the Outgoing Settings, Trunk Name (above PEER Details).
3. Route Name: BlockPublicPhone
This route might be used to block a phone that is in a public area from making outgoing calls. In this example, the public area phone is extension 105. If the public area phone you wish to block uses a different extension number, change 105 to match the correct extension number.
Route CID: YOURNUMBER
Dial Patterns that will use this Route:
Patterns: () + | . / 105 | What it does: This line will force any calls placed by Extension 105 to use this route. Please note the period that appears between the pipe and the slash! |
---|
Trunk Sequence: DeadRestricted
Note: Create a SIP Trunk called DeadRestricted. Check the Disable Trunk box and put "DeadRestricted" in the Outgoing Settings, Trunk Name (above PEER Details).
4. Route Name: BlockCallerID
This route will allow your users to dial *67 and then a X11 number, a seven-digit number, a ten digit number, or 1 + a ten digit number, and then call will be sent out with Caller ID blocked.
Route CID: "hidden" <YOURNUMBER>
Override Extension: Checked
Dial Patterns that will use this Route:
Patterns: () + *67 | 1NXXNXXXXXX
() + *67 | NXXNXXXXXX () + *67 | NXXXXXX () + *67 | N11 | What it does: For any calls that match the pattern *67 + 1 + Area Code + Number, this line will remove *67 and then send the calls to the trunks listed. Same, but for calls that match *67 + Area Code + Number Same, but for calls that match *67 + Seven-digit Number Same, but for N11 calls, i.e. 211, 311, 411, 511, 611, 711, 811, and 911 |
---|
Trunk Sequence: Select the Trunks that you'd like FreePBX/Asterisk to attempt to use when the number dialed by one of your phones matches the Dial Patterns. FreePBX will try each Trunk in the order you list them until it is able to complete the call.
Note:
You can use variations of the above trunk to force a particular Caller ID, or allow your users to choose to use a particular line, or trunk. Just change the Route CID settings, change *67 in the Dial Patterns to whatever prefix you want to use (i.e., *81 for line 1, *82 for line 2, and so on), and then whatever Trunk sequence you prefer. If you change the Route CID from "hidden" <YOURNUMBER> to just a number, the route can be used to force a particular Caller ID.
5. Route Name: Normal
Route CID: YOURNUMBER
Dial Patterns that will use this Route:
Patterns: () + | 1NXXNXXXXXX () + | NXXNXXXXXX () + | NXXXXXX () + | N11 () + | 011. | What it does: 1 + Area Code + 7-Digit Number calls can use this route Area Code + 7-Digit Number calls can use this route 7-Digit Number calls can use this route Calls to N11 calls, i.e. 211, 311, 411, 511, 611, 711, 811, and 911 can use this route Numbers of any length that start with 011 can use this route. Delete if you want to block international calls. |
---|
Trunk Sequence: Select the Trunks that you'd like FreePBX/Asterisk to attempt to use when the number dialed by one of your phones matches the Dial Patterns. FreePBX will try each Trunk in the order you list them until it is able to complete the call.
Note:
You can use variations of the above trunk to force a particular Caller ID, or allow your users to choose to use a particular line, or trunk. Just change the Route CID, change *67 in the Dial Patterns to whatever prefix you want to use (i.e., *81 for line 1, *82 for line 2, and so on), and then whatever Trunk sequence you prefer.