Home / Guides / FreePBX

How to Set Up a SIP Trunk in FreePBX with IPComms

FreePBX makes SIP trunk configuration easy with its web-based GUI. This guide walks you through creating a PJSIP trunk, configuring outbound and inbound routes, and connecting your FreePBX system to IPComms.

Sign up now or see the full rate table

FreePBX · · Updated · 11 min read

Prerequisites

  • FreePBX 15+ installed and accessible via web browser
  • An IPComms account with SIP credentials (sign up at portal.ipcomms.net)
  • At least one DID (phone number) assigned to your account
  • Your server's public IP address (for IP authentication)
  • Network access to s1.ipcomms.net on ports 5060 (UDP) and 10000-20000 (UDP)

Step 1: Create a New Trunk

1

Log into your FreePBX admin panel (typically http://your-server/admin)

2

Navigate to Connectivity > Trunks

3

Click Add Trunk and select Add SIP (chan_pjsip) Trunk

4

Enter a Trunk Name: IPComms

Step 2: Configure PJSIP Settings

General Tab

FieldValue
Trunk NameIPComms
Outbound CallerIDYour DID number
CID OptionsAllow Any CID

PJSIP Settings Tab - General

FieldValue
UsernameYour IPComms username
SecretYour IPComms password
AuthenticationOutbound
RegistrationSend
SIP Servers1.ipcomms.net
SIP Server Port5060
Contextfrom-pstn

PJSIP Settings Tab - Advanced

FieldValue
From DomainYour SIP domain from the welcome email (e.g. yourcompany.s1.ipcomms.net) — recommended. It may be left blank when the SIP Server above is our hostname; it is required if you point the trunk at an IP address.
From UserYour IPComms username
Direct MediaNo
Match (Inbound)34.23.59.14

Building this? Your PBX will need a number

Find a phone number for your trunk

Local numbers $1.50 a month, toll-free $2.00, $1.00 one-time setup. Pick one here and it carries into signup.

Enter an area code, or wait a moment for numbers near you.

More numbers, porting and E911 in the portal

Outbound US and Canada
$0.010 /min
Inbound
$0.009 /min
Local number
$1.50 /mo
Per channel
$0 no set limits

Sign up now or see the full rate table. No contracts.

Step 3: Create an Outbound Route

An outbound route tells FreePBX which trunk to use for external calls:

1

Go to Connectivity > Outbound Routes

2

Click Add Outbound Route

3

Route Name: IPComms_Out

4

Trunk Sequence: Select IPComms

Dial Patterns

PrependPrefixMatch PatternDescription
1NXXNXXXXXX10-digit dialing (prepends 1)
1NXXNXXXXXX11-digit dialing
91NXXNXXXXXX9 + number (strips 9)
911Emergency

Step 4: Create an Inbound Route

1

Go to Connectivity > Inbound Routes

2

Click Add Inbound Route

3

Description: Main Number

4

DID Number: Enter your IPComms DID (e.g., 2125551234)

5

Set Destination: Choose where calls should go (IVR, Ring Group, Extension, etc.)

Step 5: Test Your Configuration

Verify Trunk Registration

Asterisk CLI
# Check PJSIP registration
asterisk -rx "pjsip show registrations"
# Expected output:
# IPComms/sip:s1.ipcomms.net    Registered

Test Outbound

  1. Pick up an extension on your FreePBX system
  2. Dial an external number (your cell phone)
  3. Verify the call connects and audio works both ways
  4. Check caller ID shows your DID

Troubleshooting

ProblemSolution
Trunk shows "Unavailable"Check credentials, verify firewall allows UDP 5060
One-way audioSet Direct Media to No, check RTP ports
Outbound calls failCheck outbound route dial patterns
Inbound calls not routingVerify DID matches exactly in inbound route

Stop worrying about SIP trunk capacity. We have you covered.

SIP trunking from a US carrier since 2002: $0.009 per minute inbound, $0.010 outbound, numbers from $1.50 a month, $0 per channel, no contracts.

Sign up now or see the full rate table