To connect FreePBX to a SIP trunk from Internetport, you need to have FreePBX installed and the SIP trunk details found in your Customer Portal. This guide will walk you through configuring the trunk, inbound and outbound routes, and verifying the connection.
Prerequisites
- FreePBX installed on your server.
- SIP trunk details from Internetport available in your Customer Portal under Services -> My Services -> [SIP Trunk] -> Configuration Details.
Create a New SIP Trunk in FreePBX
Navigate to Connectivity Trunks and create a new trunk to connect to Internetport's SIP server.
Step 1: Log in to the FreePBX Admin Page
Use your credentials to log in to your FreePBX instance.
Step 2: Navigate to Connectivity Trunks
In the left menu, click on Connectivity and then select Trunks.
Step 3: Create a New Trunk
Click on "Add SIP Trunk" to create a new trunk.
Step 4: Configure Basic Settings for the Trunk
Enter the name of the trunk and select
chan_pjsipas the technology. Use the SIP trunk details from Internetport to fill in the remaining fields.
Configure chan_pjsip Server Auth Registration
To ensure correct communication with Internetport's SIP server, you must configure authentication and registration in chan_pjsip.
Step 5: Navigate to PJSIP Settings
In the left menu, click on Connectivity and then select PJSIP Settings.
Step 6: Configure AOR (Address of Record)
Add a new AOR with the external IP address or domain name for Internetport's SIP server. Use the same name as the trunk.
Step 7: Configure Auth
Add a new Auth entry and fill in the credentials from Internetport.
Step 8: Configure Endpoint
Add a new Endpoint with the same name as the trunk. Use the AOR and Auth entries you created earlier. Enter the SIP server's address, port, and transport (UDP/TLS) from Internetport.
Configure Inbound Routes with DID
To receive calls on your trunk, you must configure inbound routes in FreePBX.
Step 9: Navigate to Connectivity Inbound Routes
In the left menu, click on Connectivity and then select Inbound Routes.
Step 10: Create a New Inbound Route
Click on "Add Inbound Route" to create a new route.
Step 11: Configure DID Number
Enter the DID number (Direct Inward Dial) you want to receive calls on. You can use wildcard (*) to match multiple numbers.
Step 12: Select Trunk and Destination
Select the trunk you created earlier as the inbound trunk and choose a destination for the calls, e.g., an internal extension or IVR.
Configure Outbound Routes
To make outgoing calls via your trunk, you must configure outbound routes in FreePBX.
Step 13: Navigate to Connectivity Outbound Routes
In the left menu, click on Connectivity and then select Outbound Routes.
Step 14: Create a New Outbound Route
Click on "Add Outbound Route" to create a new route.
Step 15: Configure Matching Rules
Enter matching rules for numbers that should be dialed out via your trunk. You can use wildcard (*) to match all outgoing calls.
Step 16: Select Trunk and Destination
Select the trunk you created earlier as the outbound trunk.
Apply Configuration
After configuring your trunk, inbound and outbound routes, you must apply the changes for them to take effect.
Step 17: Apply the Configuration
Click on "Apply Config" in the upper right corner of the FreePBX admin page to apply the changes.
Verify and Test Calls
After configuring your trunk, inbound and outbound routes, and applying the changes, it's time to verify the connection by making both incoming and outgoing calls.
Step 18: Test Outgoing Calls
Dial an external number to test if outgoing calls work correctly via your trunk.
Step 19: Test Incoming Calls
Have someone else call your DID number to verify that incoming calls are received and routed to the correct destination.
Common Issues
- Check that the SIP trunk details are correct.
- For sections where you enter IP addresses or domain names, always use the same format as in your Customer Portal.
- Ensure that ports 5060 UDP and/or 5061 TLS are open on your firewall for communication with Internetport's SIP server.
For more help or if you encounter issues, visit Internetport support.