[asterisk-users] Asterisk 1.8.7 and client outside network

Administrator TOOTAI admin at tootai.net
Fri Oct 7 08:01:31 CDT 2011


Hi,

my asterisk 1.8.7 is working well with phones (SNOM, Gigaset 620 and 
GrandStream) connected from the lan

I now want to connect a snom320 from outside but it failed, having always

[Oct  7 14:48:04] ERROR[3870]: netsock2.c:94 ast_sockaddr_stringify_fmt: 
getnameinfo(): ai_family not supported
[Oct  7 14:48:04] WARNING[3870]: chan_sip.c:13597 
parse_register_contact: Domain 'XX.XXX.XXX.XX:2048' disallowed by 
contact ACL (violating IP )
[Oct  7 14:48:04] WARNING[3870]: chan_sip.c:14306 register_verify: 
Registration denied because of contact ACL

doesn't matter if I connect through a VPN or to the public IP using STUN.


My sip.conf:

localnet=172.24.0.0/12
localnet=169.254.0.0/255.255.0.0 ; Zero conf local network
localnet=<Asterisk server external IP/32>
autodomain=yes
;allowexternaldomains=yes
domain=172.24.30.250     ;Asterisk Server IP
domain=<Public Hostname>
domain=<Another Public Hostname>

[309](snom320,ulaw-phone,callgroup1)
type=friend
insecure=port,invite
secret=VoIP2auDIo
contactdeny=0.0.0.0/0.0.0.0
contactpermit=XX.XXX.XXX.XX/32         ; External IP from phone, same as 
disallowed by contact ACL
deny=0.0.0.0/0.0.0.0
permit=XX.XXX.XXX.XX/32
nat=yes

Any clue? Why violating IP is empty?

Thanks for your help

-- 
Daniel



More information about the asterisk-users mailing list