1. Home
  2. Knowledge Base
  3. SIP trunking & PBX setup
  4. How to connect a FreePBX PBX to Be Connect
SIP trunking & PBX setup

How to connect a FreePBX PBX to Be Connect

Updated 18 Nov 2026 · 4 min read

This quick-start guide shows you how to connect a FreePBX PBX to Be Connect using either a peering SIP trunk or a registered SIP trunk. Set up the trunk in the Be Connect Portal first, then configure FreePBX.

Set up the trunk in the Be Connect Portal

Decide whether you’ll use a peering trunk or a registered trunk, then follow the steps for that method. Not sure which one you need? See What is a SIP Trunk?

Peering SIP trunk

Set up an account peering trunk, or set peering IPs for individual numbers in the Number Manager. The full steps are in SIP Trunking – Peering Method.

Registered SIP trunk

  • Pilot number: under Outbound Calls > Outbound Trunking, tick the Enable Outbound Trunking box.
  • DDIs: under Inbound Calls > Forwarding and Trunking, set Send inbound calls to registered number to the pilot and tick the Preserve DDI box.

Set up FreePBX

Leave any setting that isn’t listed here at its default value.

Add a peering SIP trunk

  1. Select Connectivity > Trunks > Add Trunk > Add SIP (chan_pjsip) Trunk.
  2. Set these fields:
    • Trunk Name: the pilot number, or a descriptive name of your choice
    • Outbound CallerID: the pilot number in NSN+0 format inside angle brackets, e.g. <0xxxxxxxx>
  3. Select pjsip Settings > General and set:
    • Authentication: None
    • Registration: None
    • SIP Server: phone.bedigital.co.nz
    • SIP Server Port: 5060
  4. Select pjsip Settings > Advanced and set:
    • From User: the pilot number in NSN+0 format, e.g. 0xxxxxxxx
    • Contact User: the pilot number in NSN+0 format, e.g. 0xxxxxxxx
    • Send RPID/PAI: Send P-Asserted-Identity header
  5. Submit and apply the changes.

Add a registered SIP trunk

  1. Select Connectivity > Trunks > Add Trunk > Add SIP (chan_pjsip) Trunk.
  2. Set these fields:
    • Trunk Name: the pilot number, or a descriptive name of your choice
    • Outbound CallerID: the pilot number in NSN+0 format inside angle brackets, e.g. <0xxxxxxxx>
  3. Select pjsip Settings > General and set:
    • Username: the pilot number in NSN+0 format, e.g. 0xxxxxxxx
    • Auth username: the pilot number in NSN+0 format, e.g. 0xxxxxxxx
    • Secret: the password you assigned to the pilot in the Be Connect Portal
    • Authentication: Outbound
    • Registration: Send
    • SIP Server: phone.bedigital.co.nz
    • SIP Server Port: 5060
  4. Select pjsip Settings > Advanced and set:
    • From User: the pilot number in NSN+0 format, e.g. 0xxxxxxxx
    • Contact User: the pilot number in NSN+0 format, e.g. 0xxxxxxxx
    • Send RPID/PAI: Send P-Asserted-Identity header
  5. Submit and apply the changes.

Add extensions (DDIs)

  1. Select Applications > Extensions > Add Extension > Add New SIP [chan_pjsip] Extension.
  2. Set these fields:
    • User Extension: an extension number of your choice
    • Display Name: a descriptive name for the extension
    • Outbound CLI: the DDI number in NSN+0 format inside angle brackets, e.g. <0xxxxxxxx>
    • Secret: a secure password of your choice, which the extension uses to register to your PBX
  3. Select Find Me/Follow Me and make sure Change External CID Configuration > Mode is set to Default.
  4. Submit and apply the changes.

Set up call routing

Inbound and outbound routing differs from one deployment to the next, especially when the PBX has more than one trunk. The routes below are a starting point: they send all inbound calls to one extension and all outbound calls out through the trunk. For more complex needs you can change or replace them; the FreePBX wiki and community group pages cover call routing in more depth.

Inbound route

  1. Select Connectivity > Inbound Routes > Add Inbound Route.
  2. Set Description to a name of your choice, e.g. All In.
  3. For Set Destination, select Extensions, then choose the extension you set up above.

Outbound route

  1. Select Connectivity > Outbound Routes > Add Outbound Route.
  2. Set Route Name to a name of your choice, e.g. All Out.
  3. For Trunk Sequence for Matched Routes, select the trunk you set up above.
  4. Select Dial Patterns, then click the + symbol to the right of CallerID.
  5. In the first row, set Match Pattern to [*#]X.
  6. In the second row, set Match Pattern to X.
  7. Submit and apply the changes.

Need a hand?

If your trunk won’t connect or calls aren’t routing as expected, call us on 0800 233 444 (24/7) or email support@bedigital.co.nz.

Ask BeaHow can I help you today?