2017-04-13 103 views
0

帶有靜態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地址是固定的)?

+0

那麼你想從社區獲得什麼?你有沒有檢查SIP調試?你有沒有檢查過星號調試chan_sip做什麼? – arheops

+0

@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。 –

回答

0

您有host=dynamic ...您是否試過host = 1.1.1.1,因爲您不想動態註冊?

+0

如果參數不是'host = dynamic',則星號認爲對方沒有註冊。 –

+0

我不確定你的意思。你可以發佈一個鏈接到屏幕上限嗎? – MichelV69