I am in the process of upgrading all of our companies site servers from asterisk 1.4 to 13. I thought I would take the initiative to make sure everything is as secure and clean as it can be; the current configs are fairly messy.
I just want to make sure I am wrapping my head around the security and authentication between servers in each location. Does the configuration below look correct between 3 sites? Is using type=peer correct on the servers and type=friend on the desk phones best practice? Do I need to be using username=*** fromuser=*** on the servers? I have come across a lot of different examples showing a mix-match of both on servers and devices.
Any input is greatly appreciated.
Site 1
[general]
port=5060
bindaddr=0.0.0.0
disallow=all
allow=ulaw
context=inbound
registerattempts=0
registertimeout=300
rfc2833compensate=yes
[site2]
type=peer
host=... ;public IP address
secret=***
context=inbound
directmedia=no
qualify=yes
dtmfmode=rfc2833
[site3]
type=peer
host=... ;public IP address
secret=***
context=inbound
directmedia=no
qualify=yes
dtmfmode=rfc2833
[john]
type=peer
host=dynamic
port=5060
username=john
secret=***
callerid=“John Doe” <200>
context=outbound
insecure=no
directmedia=yes
qualify=yes
mailbox=200
Site 2
[general]
port=5060
bindaddr=0.0.0.0
disallow=all
allow=ulaw
context=inbound
registerattempts=0
registertimeout=300
rfc2833compensate=yes
[site1]
type=peer
host=... ;public IP address
secret=***
context=inbound
directmedia=no
qualify=yes
dtmfmode=rfc2833
[site3]
type=peer
host=... ;public IP address
secret=***
context=inbound
directmedia=no
qualify=yes
dtmfmode=rfc2833
[mary]
type=peer
host=dynamic
port=5060
username=mary
secret=***
callerid=“Mary Jane” <201>
context=outbound
insecure=no
directmedia=yes
qualify=yes
mailbox=201
Site 3
[general]
port=5060
bindaddr=0.0.0.0
disallow=all
allow=ulaw
context=inbound
registerattempts=0
registertimeout=300
rfc2833compensate=yes
[site1]
type=peer
host=... ;public IP address
secret=***
context=inbound
directmedia=no
qualify=yes
dtmfmode=rfc2833
[site2]
type=peer
host=... ;public IP address
secret=***
context=inbound
directmedia=no
qualify=yes
dtmfmode=rfc2833
[bill]
type=peer
host=dynamic
port=5060
username=bill
secret=***
callerid=“Bill Ding” <202>
context=outbound
insecure=no
directmedia=yes
qualify=yes
mailbox=202