LocalPhone FreePBX/Asterisk Configuration
=====================================
Trunk
Create a new SIP Trunk.
Name: LocalPhone-<your incoming number>
Dialed Number Manipulation Rules (blank prepend, blank prefix):
1NXXNXXXXXX
NXXNXXXXXX
SIP Settings (Outgoing)
Trunk Name: LocalPhone-<your incoming number>
PEER Details (copy and paste, then edit your ID and password):
type=friend
insecure=very
nat=no
canreinvite=no
authuser=<SIP ID>
username=<SIP ID>
fromuser=<SIP ID>
fromdomain=localphone.com
secret=<SIP Password>
host=localphone.com
dtmfmode=rfc2833
context=from-trunk
disallow=all
allow=ulaw&alaw
SIP Settings (Incoming)
Register String: <SIP ID>:<SIP Password>@localphone.com/<SIP ID>
Click Submit.
Inbound Route
Create a new Inbound Route.
Description: LocalPhone-<your incoming number>
DID Number: <SIP ID>
Destination: Any destination you'd like. Mine is routed directly to an extension that I've already configured.
Click Submit.
Outbound Route
Create a new Outbound Route
Route Name: LocalPhone-<your incoming number>
Trunk Sequence: Choose the trunk you previously created from the list.
Dial Patterns (blank prepend, blank prefix):
1NXXNXXXXXX
NXXNXXXXXX
Click Submit.
Validate the Configuration
Click the red Apply Config button in the top right corner of the admin portal.
Click Reports>Asterisk Info from the top menu bar.
Click Chan_Sip Info on the right-hand pane.
In the Chan_Sip Registry, you should see localphone.com:5060 listed in a "Registered" state.
You should now be able to place calls using your extension's phone as well as receive calls from external callers to the number.
As taken from https://blog.brycebaker.net/2018/11/loc ... eepbx.html