FreePBX 17 SIP Trunk Configuration
Simtex SIP Trunks from $4.99/month
Business-grade SIP trunking with geo-redundant infrastructure, crystal-clear audio, and Australian-based support. Pay-as-you-go or unlimited plans available.
Overview
This guide walks you through configuring a Simtex SIP trunk on FreePBX 17 using the PJSIP (chan_pjsip) channel driver. FreePBX 17 is built on Asterisk 21 and ships with PJSIP as the default SIP stack — the legacy chan_sip driver is no longer available.
FreePBX is the most widely deployed open-source PBX platform, offering a full-featured web GUI for Asterisk — freepbx.org
What you'll need
- Your Simtex account number (e.g.
214XXXXXXX) - Your Simtex SIP password
- Your allocated DIDs (phone numbers)
- FreePBX 17 installed with web GUI access
- West Coast (AU):
siptcp.simtex.com.au - East Coast (AU):
siptcpeast.simtex.com.au
Choose the server closest to your FreePBX instance. PJSIP fully supports SRV record resolution — set the port to 0 and FreePBX will automatically discover the optimal connection endpoint.
Step 1 — Enable TCP Transport
Before creating the trunk, ensure TCP transport is enabled in FreePBX. By default, only UDP is active.
- Navigate to Settings → Asterisk SIP Settings
- Click the SIP Settings [chan_pjsip] tab
- Scroll down to the Transports section
- Click Yes next to TCP to enable it
- Click Submit, then Apply Config
Step 2 — Create the SIP Trunk
- Navigate to Connectivity → Trunks
- Click Add Trunk
- Select Add SIP (chan_pjsip) Trunk from the dropdown
General Settings
On the General tab, configure:
Trunk Name: Simtex SIP
Outbound CallerID: (your main DID, e.g. 61894883344)
Maximum Channels: (your purchased channel count)Step 3 — PJSIP Settings
Click the PJSIP Settings tab and configure the connection to Simtex:
General Tab
Username: 214XXXXXXX
Secret: XXXXXXXX
Authentication: Outbound
Registration: Send
Language Code: en
SIP Server: siptcp.simtex.com.au
SIP Server Port: 0
Transport: 0.0.0.0-tcp0, FreePBX's PJSIP driver queries DNS for SRV records and automatically discovers the correct port and failover endpoints. This gives you automatic high-availability across our geo-redundant server farms.siptcp.simtex.com.au with siptcpeast.simtex.com.au in the SIP Server field if your FreePBX instance is located on the East Coast of Australia (NSW, VIC, QLD).Advanced Tab
Click the Advanced tab and configure caller ID passthrough:
Contact User: 214XXXXXXX (same as username)
From User: 214XXXXXXX (same as username)
From Domain: siptcp.simtex.com.au
Trust RPID/PAI: Yes
Send RPID/PAI: BothThese settings ensure your outbound caller ID is correctly transmitted via the RPID and P-Asserted-Identity SIP headers, and that Simtex can pass caller ID information back to you on inbound calls.
Codecs Tab
Click the Codecs tab and reorder the codec priority list. Drag to reorder:
Priority 1: G.711 A-Law (alaw)
Priority 2: G.711 U-Law (ulaw)Remove any codecs you don't intend to use — a cleaner codec list speeds up call negotiation.
Click Submit, then Apply Config. The trunk should register within a few seconds — you'll see a green indicator next to the trunk name in the Trunks list.
Step 4 — Outbound Routes
Outbound routes tell FreePBX what numbers it's allowed to dial externally and which trunk to use.
- Navigate to Connectivity → Outbound Routes
- Click Add Outbound Route
- Enter a Route Name (e.g. "Simtex Outbound")
- Under Trunk Sequence, select your Simtex SIP trunk as Route 1
- Click the Dial Patterns tab to configure what numbers this route handles
0) in the Dial Patterns to require a leading digit before external numbers. This prevents internal extension numbers from overlapping with external destinations — standard practice in Australian PBX deployments.Recommended Dial Patterns for Australian Numbering
| Description | Prefix | Match Pattern | Prepend | Example Dialled |
|---|---|---|---|---|
| Local (8-digit with area code) | XXXXXXXX | 94883344 | ||
| National / Mobile (leading 0) | 0 | XXXXXXXXX | 0412345678 | |
| Emergency | 000 | 000 | ||
| 1300 / 1800 Numbers | 1[38]00XXXXXX | 1300888519 | ||
| 13 Numbers (6-digit) | 13XXXX | 131313 | ||
| International (0011) | 0011. | 001161894883344 |
0011 dial pattern. This is the simplest way to prevent unauthorised international dialling and potential toll fraud.Step 5 — Inbound Routes
Inbound routes direct incoming calls on your DIDs to the correct destination (extension, ring group, IVR, queue, etc.).
- Navigate to Connectivity → Inbound Routes
- Click Add Incoming Route
Create a catch-all route first
Leave the DID Number field blank to create a catch-all route. This handles any inbound DID that doesn't have a specific route — point it at your receptionist or main ring group.
Then add DID-specific routes
Create additional inbound routes for individual DIDs or DID ranges that need specific routing:
- DID Number: enter the number in E.164 format (e.g.
61894883344) - Set Destination: choose the target extension, ring group, IVR, or queue
You can use wildcard patterns for blocks of numbers, e.g. _89488334X to match a range.
X to match any digit 0–9, and prefix with an underscore: _89488334XStep 6 — Security Hardening
After configuring your trunk, take these essential steps to secure your FreePBX installation:
Disable SIP Guest
- Go to Settings → Asterisk SIP Settings
- Under General SIP Settings, find Allow SIP Guests
- Set to No
Additional security measures
- Strong extension passwords — FreePBX auto-generates these; do not simplify them
- Responsive Firewall — enable FreePBX's built-in responsive firewall module under Connectivity → Firewall
- Intrusion Detection — enable fail2ban integration to automatically block brute-force attacks
- Keep FreePBX updated — run Admin → Module Admin → Check Online regularly for security patches
- Channel limits — keep Maximum Channels on the trunk set to your actual concurrent call requirement
Testing Your Trunk
Once configured, verify everything works:
- Check trunk status — navigate to Connectivity → Trunks and confirm the trunk shows a green indicator
- Make an outbound call — dial an external number from an extension and confirm two-way audio
- Receive an inbound call — call one of your DIDs from a mobile and confirm it routes correctly
- Verify caller ID — check your outbound caller ID displays correctly on the receiving end
- Check voicemail — leave a voicemail to ensure DTMF tones are working correctly through the trunk
- Verify your account number (
214XXXXXXX) and password — copy/paste to avoid typos - Ensure TCP transport is enabled (Step 1) and selected on the trunk
- Confirm SIP Server Port is
0(not 5060) - Check your firewall allows outbound TCP connections
- Verify DNS resolution:
dig SRV _sip._tcp.siptcp.simtex.com.aushould return records - Try the alternate server (
siptcpeast/siptcp) in case of regional issues
Extension-Level Caller ID
By default, outbound calls present the Outbound CallerID set on the trunk. To override per extension:
- Navigate to Applications → Extensions
- Edit the extension
- Set Outbound CID to the DID you want that extension to present in E.164 format (e.g.
61894883344)
The DID must be allocated to your Simtex account — you cannot present arbitrary numbers.
Need Help?
If you run into any issues configuring your FreePBX trunk, our support team can verify your trunk registration status from our side and assist with troubleshooting.