Benny, I investigate it little bit further and same case happen to me here. Before I was sending from different port than was in SIP header fields Via and Contact. That's why ALG haven't rewrite the headers. When I have any port which I send from and is same in UDP and SIP header fields and I am sending to port 5060 my addresses get rewritten. Your solution however works all the time. Thanks a lot! :) Ondrej On Fri, Jul 25, 2008 at 23:52, <bennylp at pjsip.org> wrote: > thanks for the info. In my case, it doesn't matter what the source > port is the router always rewrites the addresses. The only way to stop > it doing that is to change the destination port (the server's port) to > other than 5060. > > -benny