On 10/19/07, users-request@openser.org users-request@openser.org wrote on behalf of IƱaki Baz Castillo ibc@in.ilimit.es:
My openser have a private IP (192.168.5.119) statically natted to xx.xx.33.119; so the first via contains the private IP. Is it up to the client to figure out how to manage this or is there a way to handle this in openser ?
Look at the "Via" headres in both cases, they are the same.
That's right but the difference is that the second invite reply (from Sipura) arrives to the server and the first one from Thomson don't.
You have an issue because NAT. The Thomson INVITE leaves OpenSer natted but the Via header added by OpenSer says "192.168.5.119". You should fix the Via header for messages that will be natted, but sincerely I don't know how.
Thank you for this hint. It reminded me a wonderful option in openser core called "advertised_address" where you can set what you want to see in the first Via. So I set my domain name there. It is resolved with the public IP from outside and with the lan IP from the inside and now it works from both sides !