[Serusers] Forwarding to port 5060 when UA behind NAT

Arek Bekiersz sip at perceval.net
Tue Feb 21 15:39:14 CET 2006


... I answer myself:

I overlooked a mistake in regexp, in my loose_route section, when 
checking a condition to use force_rport():

I think that best thing is to use nat_uac_test("3")
;-)))


Was wrong:

# Rport section
  if (search("^(Contact|m|Via): .*@(192\.168\.|10\.|172\.16)"))  {
  ...
  force_rport();
  ...
  };


Should be:

# Rport section
  if (search("^(Contact|m|Via): .*(192\.168\.|10\.|172\.16)"))  {
  ...
  force_rport();
  ...
  };


Sorry for that.
;-)



Arek Bekiersz wrote:
> Dear list,
> I have situation where SIP UA is behind NAT, that maps everything to
> ports above number 61000. I use nathelper, rtpproxy and SER 0.8.12. 
> Everything works fine.


-- 
Regards,
Arek Bekiersz




More information about the sr-users mailing list