Use force_rport() function.
--
Regards,
Arek Bekiersz
PREVOT Paul wrote:
> Hello,
>
>
>
> My UA is behind a NAT. Also I am using the nathelper module to fix the NAT
> issue. The contact field of my registrar request is : toto@192.168.1.1:5062
>
> OpenSER gets the request from my public IP, replies to that public IP but
> not on the port it got the registrar request, but always on 5062 (e.g. the
> port from contact field).
>
>
>
> Do you know how to force openSER reply on the port it gets the request?