FreePBX: Connect a SIP Trunk
Table of Contents
Scope
Intended Audience: All End Users
This article outlines how to configure a SIP trunk between your hosted PBX and a FreePBX instance.
This article was written using FreePBX 16
Requirements
- SIP Trunk Information (see Create a SIP Trunk)
- Existing FreePBX instance
Create SIP Trunk
- Using Chrome or Firefox navigate to the web console of the PBX.
- Click on FreePBX Administration.
- Log in with your administrator credentials.
- From the navigation at the top select Connectivity and then Trunks.
- Click on + Add Trunk and then + Add (chan_sip) Trunk.
-
Trunk Name: Hosted PBX
- Click on the tab for sip Settings.
- On the tab for Outgoing fill out the following details
- Trunk Name: pbx-out
- PEER Details:
type=peer trustrpid=yes session-timers=refuse rfc2833compensate=yes qualify=no outboundproxy=<Primary core FQDN> nat=no insecure=port,invite host=<Primary core FQDN> fromdomain=xxxxx dtmfmode=rfc2833 disallow=all context=from-pstn canreinvite=no allow=ulaw
For the outboundproxy and host values, replace <Primary core FQDN> with the FQDN for your primary core (reach out to support if unsure):
ATL: sbc.ucaasnetwork.com
SJE: sbc-west.ucaasnetwork.com
Replace xxxxx with your domain name.
On the tab for Incoming fill out the following details.
USER Context: pbx-in
USER Details:
type=user outboundproxy=<Primary core FQDN> host=<Primary core FQDN> fromuser=xxxxx fromdomain=xxxxx
- For the outboundproxy and host values, replace <Primary core FQDN>with the FQDN for your primary core (reach out to support if unsure):
ATL: sbc.ucaasnetwork.com
SJE: sbc-west.ucaasnetwork.com
- Replace xxxxx with your domain name.
- Click Submit.
You will will receiving a popup. Click OK
Click Apply Configuration.
Configure Inbound Routes
- Click on Connectivity then Inbound Routes.
- Click + Add Inbound Route
Under General enter the following:
Description: A descriptive name for the route (i.e. Main number)
DID Number: This needs to be your 10 digit number
Set Destination: Choose any destination. This is typically an extension or ring group.
Click Submit.
Repeat the above steps for all numbers on this SIP trunk
Configure Outbound Routes
- Click on Connectivity then Outbound Routes.
- Click + Add Outbound Route.
Under Route Settings enter the following:
Route Name: Enter any description for the route such as Default
Route CID: Enter your outbound caller ID. This must be a number configured on the trunk
Trunk Sequence for Matched Routes: Select the trunk created from the first section.
Under Dial Patterns create entries for the following match patterns:
1NXXNXXXXXX
NXXNXXXXXX
[3-9]11
Optional for International Long Distance: 011.
Click Submit
Click Apply Configuration.