Asterisk with two interfaces

Hi

I have got trixbox system with two interfaces LAN and internet.

My sip_nat.conf:
bindaddr = 10.10.20.9
bindaddr = 194.44.193.XXX

I can connect my phones to 194.44.193.XXX, but I cannot connect them to 10.10.20.9 (NAT = no for them).

Any help?

bindaddr=0.0.0.0
nat=yes

bzzz… it doesnot work… if somebody connects to out ip and make a call, one side cannot here another one

Then make sure you have set your sip.conf correctly

add

alwaysauthreject = yes

[quote]It is possible to determine if a peer with a specific name is configured in Asterisk
by sending a specially crafted REGISTER message twice. The username that is to
be checked is put in the user portion of the URI in the To header. A bogus nonmatching
value is put into the username portion of the Digest in the Authorization
header. If the peer does exist the second REGISTER will receive a response of
“403 Authentication user name does not match account name”. If the peer does
not exist the response will be “404 Not Found” if alwaysauthreject is disabled and
“401 Unauthorized” if alwaysauthreject is enabled.[/quote]

also use acl permit and deny for handsets that reside inside and those outside.

also strengthen your IAX conf as well,

Ian