Configuring FreePBX 15 for inbound calls
We have talked in the previous tutorial about installing FreePBX. Now let's talk about creating a trunk for inbound calls.
What you will need:
- a functional FreePBX
- a single SIP account (or multiple ones, for redundancy)
- one or more DIDs
- a configured FreePBX
A functional FreePBX:
Please refer to this tutorial about installing FreePBX: https://multitel.net/docs/view/671/tutorials/installing-freepbx
A single SIP account (or multiple ones, for redundancy)
You can start by creating a SIP account here: https://multitel.net/trunks/accounts
Click on the "Create New" button. A new window will show up. Copy the SIP Username and SIP password and save them in your notes. You will need them later.
Click on the Submit button once done.
In our example, we have created the following SIP account:
SIP Username: 1433369182
SIP Password: AjYaPthnvqFU182E
(These will be a different SIP Username/Password in your case. Use your own SIP username and SIP password. These ones above have been deleted after this tutorial was written)
Now for the SIP proxy to use, you can choose one of the following (listed alphabetically):
Continent | Country | SIP Proxy |
Africa | South Africa | sbc-za.multitel.net |
Asia | Singapore | sbc-sg.multitel.net |
Australia and Oceania | Australia | sbc-au.multitel.net |
Europe | Netherlands | sbc-nl.multitel.net |
Europe | Germany | sbc-de.multitel.net |
Europe | United Kingdom | sbc-uk.multitel.net |
North America | Canada | sbc-ca.multitel.net |
North America | United States of America | sbc-us.multitel.net |
South America | Brazil | sbc-br.multitel.net |
So, if you are located in Europe, you would choose one of the European based SIP proxies. You can ping each one of them and determine which one is closer to your location:
In my own testing, sbc-ca.multitel.net was the closest one, with around 20-21ms round trip times.
So, my credentials for this tutorial will now be:
SIP Username: 1433369182
SIP Password: AjYaPthnvqFU182E
SIP Proxy: sbc-ca.multitel.net
One or more DIDs:
You can buy a DID number here: https://multitel.net/numbers/rent
OR
You can use one of your existing numbers: https://multitel.net/numbers/inventory
OR
You can Bring Your Own Carrier: https://multitel.net/numbers/byoc
Whatever you do, you will end up here:
https://multitel.net/numbers/inventory
You will need to make sure that your DIDs are sending you calls from the same SIP Proxy that you are using for SIP registration. Here's how to do that:
Edit the number:
First go here: https://multitel.net/numbers/inventory
Search for the number, and click on the Edit Number button:
Find the "Origination trunk" setting and set it to "sbc-ca.multitel.net" -- or whatever is the closest SIP server to your location.
Next, make sure that the DID is sending the calls to your SIP account.
Set the "Call Action" menu to "SIP Account" , and make sure that the "SIP Account" menu is set to the SIP account that you are going to use.