Scope:
The following steps will allow you to create a SIP Trunk with your hosted PBX for use on the FreePBX platform using IP-based authentication.
Requirements:
This has been tested on version 13.0.190.1
Administrator privileges to the web console
Static IP provided of FreePBX
SIP trunk information (see Create a SIP Trunk)
Create SIP Trunk
Using Chrome or Firefox navigate to the web console of the PBX.
Click on FreePBX Administration.
Log in with your administrator credentials.
From the navigation at the top select Connectivity and then Trunks.
Click on + Add Trunk and then + Add (chan_sip) Trunk.
Trunk Name: Hosted PBX
Click on the tab for sip Settings.
On the tab for Outgoing fill out the following details
Trunk Name: pbx-out
PEER Details:
type=peer
trustrpid=yes
session-timers=refuse
rfc2833compensate=yes
qualify=no
outboundproxy=core1-c7-slc.pbx.io
nat=no
insecure=port,invite
host=core1-c7-slc.pbx.io
fromdomain=xxxxx
dtmfmode=rfc2833
disallow=all
context=from-pstn
canreinvite=no
allow=ulawReplace xxxxx with your domain.
On the tab for Incoming fill out the following details.
USER Context: pbx-in
USER Details:
type=user
outboundproxy=core1-c7-slc.pbx.io
host=core1-c7-slc.pbx.io
fromuser=xxxxx
fromdomain=xxxxxReplace xxxxx with your domain
Click Submit.
You will will receiving a popup. Click OK
Click Apply Configuration.
Configure Inbound Routes
Click on Connectivity then Inbound Routes.
Click + Add Inbound Route
Under General enter the following:
Description: A descriptive name for the route (i.e. Main number)
DID Number: This needs to be your 10 digit number
Set Destination: Choose any destination. This is typically an extension or ring group.
Click Submit.
Repeat the above steps for all numbers on this SIP trunk
Configure Outbound Routes
Click on Connectivity then Outbound Routes.
Click + Add Outbound Route.
Under Route Settings enter the following:
Route Name: Enter any description for the route such as Default
Route CID: Enter your outbound caller ID. This must be a number configured on the trunk
Trunk Sequence for Matched Routes: Select the trunk created from the first section.
Under Dial Patterns create entries for the following match patterns:
1NXXNXXXXXX
NXXNXXXXXX
[3-9]11
Optional for International Long Distance: 011.
Click Submit
Click Apply Configuration.