Setting up FusionPBX with your Dial 9 SIP trunking service

This article covers setting up inbound and outbound calls from your FusionPBX instance to your Dial 9 SIP trunking service.

The following guide is written with the understanding that you have already configured your Dial 9 SIP trunks within Dial 9 Connect, which you can reach by logging into the Dial 9 Portal. We do have another guide to help with setting up Dial 9 SIP trunks.

This guide covers trunks that authenticate by IP address, and trunks that authenticate with a username and password.

The guide has been most recently tested using FusionPBX 5.5 running on Debian 13 per their recommended operating system choice.

Once your SIP trunks are configured within Dial 9 Connect, please log into your FusionPBX admin area.

Outbound calls

Setting up a new Gateway

Select Account > Gateways via the menu on the left-hand side and click + Add.

  • Add a name of Dial 9 Outbound Trunk
  • Enter sip.dial9.co.uk in the Proxy
  • Set Register to False
  • Under Advanced, set Caller In From to True
  • Under Advanced, set Sip CID Type to pid
  • Under Advanced, set the Domain to Global
  • Press Save to finish

Using a username and password trunk

If your Dial 9 trunk authenticates with a username and password, set up the gateway as above, but:

  • Enter the trunk's full username from Dial 9 Connect, including the prefix, as the Username
  • Enter the trunk's password as the Password
  • Set Register to True

The rest of this guide, including the access controls step, stays the same.

Setting up your Outbound Routes

Head to Dialplan > Outbound Routes, then press + Add.

Local Dialling

  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^0(\d+)$ in the Dialplan Expression field
  • Enter 44 in the Prefix
  • Press Save

International Dialling

  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^00(\d+)$ in the Dialplan Expression field
  • Press Save

Removing +

  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^\+(\d+)$ in the Dialplan Expression field
  • Leave the Prefix empty, as numbers dialled with a + already include their country code
  • Press Save

Special 3 digit service numbers

  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^(101|105|111|119|159)$ in the Dialplan Expression field
  • Enter 44 in the Prefix
  • Press Save

Directory enquiries

116
  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^116(\d{3})$ in the Dialplan Expression field
  • Enter 44116 in the Prefix
  • Press Save
118
  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^118(\d{3})$ in the Dialplan Expression field
  • Enter 44118 in the Prefix
  • Press Save

Emergency services

999
  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^(999)$ in the Dialplan Expression field
  • Press Save
112

As 112 is no longer a standard number for the emergency services in the UK, but is still possible to use, we recommend transposing it to 999. To do this, you can add a route in a similar way to above, but slightly modify it after creation.

  • Select Dial 9 Outbound Trunk as the Gateway
  • Enter ^(112)$ in the Dialplan Expression field
  • Press Save

Click the secondary created route labelled Dial_9_Outbound_Trunk.112 to edit it, then modify the last part of the final line to 999 rather than 999$1.

Please ensure that any outbound caller IDs attributed to extensions are set to E.164 format, i.e. 443300880900.

Inbound calls

Setting up an inbound route

Head to Dialplan > Destinations and click + Add:

  • Add a country code of 44
  • Enter your number as the Destination, without 44 or 0 in the beginning, i.e. 3300880900
  • Choose an appropriate Action, such as an extension
  • Set the Domain to Global
  • Click Save.

Note that this will automatically create an inbound route, but we would recommend adding and editing routes via the Destinations area for ease.

Access controls

Finally, to allow calls to reach FusionPBX, an ACL rule needs to be created for the sending server. Head to Advanced > Access Controls, and click the providers ACL to edit it.

Under Nodes, modify the first row in the table to Allow, and ensure that the CIDR ranges stated in our firewall rules guide are all added.

You should now be setup for inbound and outbound calls through FusionPBX.