SIPFLEX GUIDE

FreePBX 17 IAX2 trunk

Choose the IAX2 trunk type and use the account values displayed in the Sipflex portal.

Before you start

Sign in to the Sipflex portal and open the trunk you want to connect. Keep the profile, phone number or username and account-specific credentials visible while you configure your system.

  • FreePBX 17 administrator access
  • IAX2 username and secret from Sipflex
  • UDP 4569 permitted between the systems
  • A destination for inbound calls
Use the current Sipflex endpoints.

The SIP registrar is sip.sipflex.co.uk and the IAX2 host is iax.sipflex.co.uk. Usernames and passwords remain account-specific and are shown in your portal.

Configure the connection

  1. Open Connectivity → Trunks and add an IAX2 trunk.
  2. Set the trunk name to Sipflex IAX2.
  3. Enter the peer details below, replacing USERNAME and SECRET.
  4. Set the registration string to USERNAME:SECRET@iax.sipflex.co.uk.
  5. Submit and Apply Config.
  6. Create an outbound route using the new trunk and inbound routes for each Sipflex number.
  7. Open the Asterisk CLI and confirm iax2 show registry and iax2 show peers report the expected state.
; PEER Details
type=friend
host=iax.sipflex.co.uk
port=4569
username=USERNAME
secret=SECRET
auth=md5
context=from-pstn
trunk=yes
disallow=all
allow=alaw
allow=ulaw

; Registration String
USERNAME:SECRET@iax.sipflex.co.uk
FreePBX owns the generated files.

Enter these values through the FreePBX interface. Do not edit iax.conf directly on a FreePBX-managed system because Apply Config can overwrite manual changes.

Verify the service

  1. Confirm the trunk is registered or that the correct public peer IP is saved in the Sipflex portal.
  2. Place an outbound test call and check the caller ID presented.
  3. Call the Sipflex number from another network and confirm it reaches the expected inbound context or route.
  4. Check two-way audio and RFC4733/RFC2833 DTMF.

Support scope

We can check Sipflex credentials, registration state and provider-side call routing. Your PBX, device, firewall, dial plan and application remain your responsibility.

Contact support