Skip to content

Connect 3CX with a SIP trunk

Last updated View as Markdown (opens in a new tab)

Register your 3CX phone system to the PBX with a SIP trunk so it can make and receive calls.

This guide connects a 3CX phone system to your PBX with a SIP trunk. 3CX signs in to the PBX with a username and password, then makes and receives calls through your phone numbers.

  • Order a trunk licence and channels: go to Services › SIP trunking, set the number of Channels (one per simultaneous call), click Add licence, tick Agree to service terms and conditions and click Submit order.
  • Have admin access to your 3CX system.
  1. Go to the PBX tab. Drag SIP trunk from the Accept, make and divert calls group onto the canvas and click the gear icon.
  2. Enter a Name and set the Number of channels.
  3. For Mode, choose SIP registration.
  4. Choose a SIP trunk call plan. Without one, outgoing calls won’t work.
  5. Choose the Caller ID for outgoing calls, or Keep originator’s caller ID to use the number 3CX sends.
  6. Click Save.
  7. Connect an Inbound number with the numbers that should ring on 3CX to the SIP trunk.
  8. Click Apply configuration.

Open the trunk’s settings again and note the SIP credentials: Domain, Username and Password. The Domain is shown as server and port, separated by a colon. Also note the Transport protocol: TCP, or TLS if TLS encryption is turned on in Settings › General. See SIP trunk for every setting.

Skip this if your 3CX system is already running.

  1. Sign in to your 3CX account and click Add System.
  2. Choose a plan and click Next, then follow the setup. The options depend on the 3CX product you choose.

Your 3CX systems page with the Add System button

  1. When installation finishes, sign in to the 3CX Admin Console.

  2. Go to Admin › Voice & Chat and click Add Trunk.

    3CX Voice & Chat page with the Add Trunk button

  3. For Country, choose Generic. For Trunk, choose Generic VoIP Provider.

  4. Fill in the fields from the PBX trunk’s SIP credentials:

    3CX field Enter
    Name Any name for the trunk.
    Main Trunk Number Your main phone number.
    Registrar/Server The Domain, without the colon and port.
    Port (next to Registrar/Server) The port after the colon in the Domain.
    Authentication ID (SIP User ID) The Username.
    Authentication password The Password.
  5. Check the details and click Save.

3CX Add Trunk page with the Generic VoIP Provider fields

If your 3CX version has a transport setting for the trunk, set it to match the trunk’s Transport protocol in the PBX (TCP, or TLS).

  • Add an inbound rule for each phone number you send to the trunk, so incoming calls reach the right 3CX extension or queue.
  • Add an outbound rule that sends calls out through the new trunk.
  1. In 3CX, the trunk’s status turns green under Voice & Chat. In the PBX, the SIP trunk’s Status shows Online.

    3CX Voice & Chat list with the new trunk showing a green status

  2. Call one of your numbers from a mobile. A 3CX extension should ring.

  3. Call a mobile from a 3CX extension. The mobile should show your caller ID.

If calls fail, check the inbound and outbound rules in 3CX first. If the trunk stays offline, check the username and password: after failed sign-in attempts, the PBX blocks the IP address for 5 minutes. You can check this with Check IP address for blocking in the trunk’s settings.

  • SIP trunk: inbound and outbound rules for numbers and extensions hosted on 3CX.
  • Device offline if the trunk won’t register.