## FreePBX
Go to Connectivity > Trunks, and create a new SIP (chan_sip) trunk.
General Settings
• Trunk Name: AsteriskSIPTrunk
Outgoing Settings
• Trunk Name: AsteriskSIPTrunk
• Peer Details:
host=<Asterisk_IP_ADDRESS>
port=<PORT>
type=peer
qualify=yes
disallow=all
allow=alaw
dtmfmode=rfc2833
insecure=port,invite
context=from-freepbx
Incoming Settings
Leave this section blank unless you need specific inbound configurations.
Registration
Leave this section empty because no registration is required when using IP-based authentication.
## Asterisk
Edit sip.conf
[freepbx_trunk]
type=peer
host=<FreePBX_IP_ADDRESS>
port=<PORT>
qualify=yes
disallow=all
allow=alaw
dtmfmode=rfc2833
insecure=port,invite
context=from-freepbx