带有静态IP的远程计算机试图注册我的星号(1.8)。 同行设置:SIP注册星号
[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
当对被登记,我得到:
[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`
当我设置dynamic_exclude_static = no
同行正在注册。
我不想允许任何IP注册。
如何设置dynamic_exclude_static = yes
并允许注册对等体(该对等体的IP地址是固定的)?
那么你想从社区获得什么?你有没有检查SIP调试?你有没有检查过星号调试chan_sip做什么? – arheops
@arheops是的,我检查过。有相同的日志。只有最后一个数据包不同。如果'dynamic_exclude_static = yes'的最后一个数据包被603拒绝,并且在它之前有'parse_register_contact:Domain'1.1.1.1:5060'不允许接触ACL(违反IP 1.1.1.1)'的消息。如果'dynamic_exclude_static = no'最后一个数据包是200 OK。 –