Am 09.10.2010 20:34, schrieb bruce bruce: > And that is exactly what is done on the device: Nat=yes but Asterisk still > sees the SIP packet coming in to register with a local IP an so it responds > to a local IP which doesn't even exist on the Asterisk network. This is what > frustrates me that it's not so straight forward to Asterisk to obtain the > proper public IP of the device from the IP packet headers rather than the > SIP packets. > > Thanks > when you do a sip debug do you see something like this:
SIP read from 192.168.0.2 for example or do you see the internal ip only in the contact header? if its only in the contact header everything is ok. if not you maybe have a network problem like SIP ALG on your router. Asterisk can only work with the data which are received. turning NAT on or off only switch between the IP in the contact header or the source IP but if your device in between like a router does something wrong like faking packet source ips asterisk cant fix this. i dont know what kind of router you use, but have a look at SIP ALG and turn this off, if possible. best regards stefan -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users