Configuring a PJSIP Trunk in FreePBX: A Step-by-Step Guide

2 min. readlast update: 02.19.2025

Summary:

This article will walk you through adding a PJSIP trunk to your FreePBX system using your Crazytel SIP Trunk credentials. Please follow these steps carefully to ensure a successful setup.
 

Adding a PJSIP Trunk to FreePBX:

  1. Access the Trunk Configuration Page
    - Log in to your FreePBX installation.
    - Navigate to the top menu and select Connectivity > Trunks.
    - Click the Add Trunk button and choose Add SIP (chan_pjsip) Trunk from the dropdown list.

  2. Enter Your SIP Trunk Credentials
    - In the Username field, enter your Crazytel SIP Trunk username.
    - In the Password field, enter your corresponding SIP Trunk password.

  3. Configure Authentication and Registration Settings
    - Set Authentication to Outbound. This specifies how FreePBX will authenticate with the SIP trunk.
    - Set Registration to Send. This enables FreePBX to register with the SIP trunk.

  4. Define the Trunk's Domain and Port
    - In the Domain field, enter the domain associated with your SIP trunk.
    - Set the Port to 5060, which is the standard port for SIP communications.

  5. Configure Advanced Settings (Optional)
    - Under the Advanced tab, ensure that From Domain is set to the same domain entered in Step 4.
    - If required, you can also specify an Outbound Proxy in this section.
 

Next Steps:

  • Outbound Routes:
    To complete the setup, configure your Outbound Routes to utilize this newly created trunk. This will ensure that outgoing calls use the Crazytel SIP Trunk.
  • Inbound Routing for Your DID:
    + If your DID is set to Device in the Crazytel portal, create an Inbound Route for the SIP endpoint username.
    + If your DID is set to Server, create an Inbound Route using the DID in E.164 format (e.g., 61712341234).
 
By following these steps, you should now have successfully added a PJSIP trunk to your FreePBX system using your Crazytel SIP Trunk credentials. If you encounter any issues, please refer to additional troubleshooting resources or contact support for assistance.
Was this article helpful?