Thanks for your reply x-console.
I inserted force_rport() in top of my main route and all other routes in my config.
As a result, now OpenSER sends INVITE and OK messages to the correct src port.
But I still have the problem...OpenSER continues to sends ACK messages to the old, wrong port.
I experimented with this stub in my main route:
| Quote: |
if(is_method("ACK"))
{
rewriteport("55159");
} |
Which temporary solves the problem, ACK packages were sent to port 55159, but port 55159 is of curse a unique port for this UA, so calls to other NATed UA's won't work.
So this raises another question:
For a called URI, is there any way to get the address in the "received" column from the location table into a variable which could then be passed on to rewritehostport()?
or maybe, any other ideas?