Creating a trunk for inbound calls in FreePBX
In this tutorial we'll show you how to create a trunk to allow incoming calls from Multitel.
Please note that if your FreePBX is configured to accept Anonymous SIP calls, your incoming calls from Multitel will also work out of the box. This is not an the ideal configuration for your FreePBX system and may be opening up Pandora's box and allow for possible rogue traffic from other sources to terminate through your system.
Therefore, we strongly suggest that you configure your system not to accept inbound Anonymous SIP calls and rather define all providers/customers that are sending you calls as "Trunks" in FreePBX.
- Your own FreePBX system
- At least 1 number purchased from Multitel
- Your IP address is 10.11.12.13
- You have purchased phone number 1234567890
Go to the "Purchased Numbers" section in your account. On the list of numbers, click on the "Action" column, on the Edit icon.
In the window that opens up, make sure the "Forward Destination" select is set to "SIP" and that the URI is set to your phone number @ your IP address. Using the assumptions made above, this would be firstname.lastname@example.org
Configuring the inbound trunk in your FreePBX installation.
This should be fairly simple, just go to the "Connectivity" menu, and click on "Trunks":
In the new window that opens, set the following info:
- Trunk Name: "Multitel"
- Dialed number manipulation rules: add "X." in the "match pattern" box
- Trunk name: "trunk-multitel"
- Peer details:
( Note that sbc-us.multitel.net should be replaced by whatever is set as origination trunk for your number -- You can find that one out by editing the number in /inventory )
- User context: "from-trunk"
- User details:
Click on "Submit changes". Everything should look like in the printscreen below:
Inbound routes - you need to set up an imcoming route to handle calls coming in from the trunk you have just defined.
You'll find the inbound routes menu in "Connectivity" , under the "Inbound routes" menu:
In the new window that will open, go ahead and add the new route.
Set the following info:
Description - the phone number you need to set up -- in our case 1234567890
DID Number - the phone number that you need to set up - in our case 1234567890
Set Destination - where should this number ring to? Select from the list You'll probably want it to go to Extensions, IVR or Conferences.
Your screen should look like this:
Click "Submit" followed by the red "Apply config" button and enjoy!