Free UK DDI number with FreePBX

A great way to test inbound calling with FreePBX/Asterisk is to get a free UK DDI/DID number from and point it at your FreePBX server. You can currently get up to 10 free numbers, based anywhere in the UK.

Four steps to inbound calling –

Step 1 – Visit the website where you can register for free. Request a DDI number in your desired geographical location.

Step 2 – Point your number at your Asterisk server. I recommend making the number to the left of the @ sign match your DDI number, but in an international format.

Setp 3 – Create an Inbound Route in FreePBX. The ‘DID Number’ should match the number you used in the control panel. To test inbound routing you can set the destination to ‘Terminate Call: Put caller on hold forever’. That way you should hear music-on-hold when you dial the number.

Step 4 – In the FreePBX General Settings page you must set ‘Allow Anonymous Inbound SIP Calls’ to Yes. This is because we are not registered with and must tell FreePBX to allow the call.

Setting “Allow Anonymous Inbound SIP Calls” to Yes is potentially unsafe. It gives attacks a chance to connect to your server via SIP in an attempt to compromise it. Please either set up SIP trunks to UKDDI (to tell Asterisk they are authorised connections) or see here for more information –

And that’s all there is to it. Dial your inbound number and you should hear music-on-hold.

2 thoughts on “Free UK DDI number with FreePBX

  1. Devrol dursinick

    Hi, What config would be needed if the elastix,asterisk server is behind a NAT firewall. for example i have nat firewall(cisco router) on and asterisk server on what additional setting do i need to make it work. any caveats?


Comments are closed.