• Home
  • Hosted Voice
  • SIP Trunking

FreePBX: Connect a SIP Trunk

Written by Marissa Orsini

Updated at March 12th, 2024

Contact Us

  • The Essentials
    FAQs Forms
  • Announcements
    Carrier Events mFax Events Platform Events Release Notes
  • Billing Administration
    Datagate OneBill
  • Faxing
    mFax - Analog mFax - Digital Native Fax
  • Hardware & Software
    Manual Configuration Provisioning NDP Axis Cisco Fanvil Grandstream Polycom Snom Yealink Mobile Applications Desktop Applications Mobile-X SNAPbuilder TeamMate Connector UC Integrator
  • Hosted Voice
    Auto Attendants Branding Call Queues Call Routing CDRs Conferencing E-911 Features Fraud Integrations Inventory / Phone Numbers Local & Toll Free Porting Onboarding Recommendations SNAP.HD SIP Trunking SMS / MMS Users Voicemail Caller ID
  • Troubleshooting
    VoIPmonitor Firewalls PBX
  • Ray's Stuff
+ More

Table of Contents

Create SIP Trunk Configure Inbound Routes Configure Outbound Routes

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

  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.ucaasnetwork.com

NYJ: sbc-ne.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

NYJ: sbc-ne.ucaasnetwork.com

SJE: sbc-west.ucaasnetwork.com

  • 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.

 

freepbx sip trunk

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Yeastar S: Connect a SIP Trunk
  • Bring Your Own Telco (BYOT) Considerations
  • PBXact SIP Trunk Setup
  • Obihai 200/300: SIP Trunk Configuration

Knowledge Base Software powered by Helpjuice

Expand