Skip to main content

FreePBX: Connect a SIP Trunk

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

Create SIP Trunk

  1. Using Chrome or Firefox navigate to the web console of the PBX.
  2. Click on FreePBX Administration.
  3. Log in with your administrator credentials.
  4. From the navigation at the top select Connectivity and then Trunks.
  5. Click on + Add Trunk and then + Add (chan_sip) Trunk.
  6. Trunk Name: Hosted PBX
  7. Click on the tab for sip Settings.
  8. 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-atl.ucaasnetwork.com

IAD: sbc-iad.ucaasnetwork.com

PHX: sbc-phx.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):
  1. Hostname:
    1. sbc.ucaasnetwork.com
    2. Alternately, you can identify your primary core here
  • Replace xxxxx with your domain name.
  1. Click Submit.

You will will receiving a popup. Click OK

Click Apply Configuration.


Configure Inbound Routes

  1. Click on Connectivity then Inbound Routes.
  2. 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

  1. Click on Connectivity then Outbound Routes.
  2. 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.