Skip to main content

FreePBX: Connect a SIP Trunk

S
Written by Support
Updated over 2 months ago

Scope:

The following steps will allow you to create a SIP Trunk with your hosted PBX for use on the FreePBX platform using IP-based authentication.

Requirements:

  • This has been tested on version 13.0.190.1

  • Administrator privileges to the web console

  • Static IP provided of FreePBX

  • SIP trunk information (see Create a SIP Trunk)

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=core1-c7-slc.pbx.io
      nat=no
      insecure=port,invite
      host=core1-c7-slc.pbx.io
      fromdomain=xxxxx
      dtmfmode=rfc2833
      disallow=all
      context=from-pstn
      canreinvite=no
      allow=ulaw
    • Replace xxxxx with your domain.

  9. On the tab for Incoming fill out the following details.

    • USER Context: pbx-in

    • USER Details:

      type=user
      outboundproxy=core1-c7-slc.pbx.io
      host=core1-c7-slc.pbx.io
      fromuser=xxxxx
      fromdomain=xxxxx
    • Replace xxxxx with your domain

  10. Click Submit.

  11. You will will receiving a popup. Click OK

  12. Click Apply Configuration.


Configure Inbound Routes

  1. Click on Connectivity then Inbound Routes.

  2. Click + Add Inbound Route

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

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

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

  4. Under Dial Patterns create entries for the following match patterns:

    • 1NXXNXXXXXX

    • NXXNXXXXXX

    • [3-9]11

    • Optional for International Long Distance: 011.

  5. Click Submit

  6. Click Apply Configuration.

Did this answer your question?