Free UK DDI and FreePBX

A little while ago I wrote some instructions for setting up a DDI with UKDDI. At the time this involved forwarding the call to a SIP URI and setting up a couple of trunks.

The nice folks at UKDDI have made this process much easier. Now we can register our FreePBX server with them, and they will send the calls to our registered IP address. The process of registration tells the remote provider who we are and what our IP address is, so that they can send calls to us.

Setting up our number in UKDDI

First we need to tell UKDDI that we will be registering with them and how to send the call to us.

Edit the number you want to use and set ‘Route’ to be ‘register’. You can also choose the codecs allowed. I suggest leaving this on G711 as it’s the best call quality, and G729 may not be available on your system

UKDDI route

UKDDI route

Next we are going to tell UKDDI the format we want the numbers presented in. We don’t want a ‘+’ on the front as FreePBX doesn’t handle this well. Click on the ‘Registration’ option and make a note of your SIP username and password. We will use these in FreePBX later. Also change the settings highlighted

UKDDI registration

UKDDI registration

 

Create the trunk in FreePBX

Now we are going to create the trunk in FreePBX. This is our connection to UKDDI, and will tell them what IP to send the call to

Add FreePBX trunk

Add FreePBX trunk

FreePBX trunk

FreePBX trunk

You should enter the details as shown above, obviously using your own username and password.

The registration string needs to be in this format –

username:[email protected]

 

FreePBX Inbound Route

Finally we need to tell FreePBX what to do with the call when it reaches our system. ¬†When setting up a number I always initially send the call to music on hold. UKDDI will send the call to us starting with the country code (44) so that’s the format we need to match in the Inbound Route

FreePBX inbound route

FreePBX inbound route

UKDDI Inbound Route

UKDDI Inbound Route

Apply config

Apply config

And you’re done! Don’t forget to apply the config, then you should be able to call the number and hear music-on-hold. If you don’t then double check the settings you entered.

If it still doesn’t work, and you’re a SysAdminMan customer, just open a support ticket and we’ll check why it’s not working.

If you’re not a SysAdminMan customer then there’s a troubleshooting guide

1 thought on “Free UK DDI and FreePBX

  1. Devrol dursinick

    Hi, would this config be the same for an asterisk server behind a nat firewall? what additional settings are needed. Thanks for the clear tutorials!

Comments are closed.