Remote computer with static ip trying to register on my asterisk(1.8). peer settings:
[remotepeer]
type = peer
host = dynamic
insecure = port,invite
context = remotepeer-Inbound
directmedia = no
dtmfmode = rfc2833
callcounter = yes
nat = no
contactpermit=1.1.1.1/32
permit=1.1.1.0/24
username = remotepeer
secret = remotepeerpass
When the peer is registering i got:
[Apr 13 10:15:55] WARNING[23037]: chan_sip.c:14609 parse_register_contact: Domain '1.1.1.1:5060' disallowed by contact ACL (violating IP 1.1.1.1)
[Apr 13 10:15:55] WARNING[23037]: chan_sip.c:15394 register_verify: Registration denied because of contact ACL`
When I set dynamic_exclude_static = no
the peer is registering.
I dont want to allow registration from any IP.
How to set dynamic_exclude_static = yes
and allow the registration for peer(ip of that peer is fixed)?
dynamic_exclude_static = yes
last packet is 603 denied and there is the messageparse_register_contact: Domain '1.1.1.1:5060' disallowed by contact ACL (violating IP 1.1.1.1)
before it. ifdynamic_exclude_static = no
last packet is 200 OK. – fdistorted