[Serusers] Where does SER get the public IP of a NATed uac from for sending as STATUS message?

Jan Janak jan at iptel.org
Mon Dec 12 10:30:49 CET 2005


On 11-12-2005 13:34, Frank Fischer wrote:
> Hi all
>  
> related to 0.9.1pre.
>  
> I have a problem with NATed UACs in my setup. Therefor i would like to know
> where SER takes the public IP of a NATed UAC from, a request is forwarded to
> (using the reply handler) if i call fix_nated_contact() to rewrite the NATed
> UACs contact header. Is it always taken form the received field in the
> location record? 

  From the source IP of the packet.

> Just for explanation: It seems that my SER does not rewrite the contact
> header field in the reply route when i call fix_nated_contact(). The contact
> header value stays the same, just before and after call to
> fix_nated_contact(). So i think, it could be SER does not get the correct
> "NAT"-information for the related enpoint and the reads a value from a
> request field? Anyone ever encountered a similar situation? Is there a way
> to get closer information on what's happening when calling
> fix:nated_contact() during runtime?

  Do you mean fix_nated_contact does not rewrite Contact header in 200
  OK ? If this is the case then make sure that you have a reply route
  set and that you call fix_nated_contact from the reply route.

  There is a simple example in sip_router/etc/nathelper.cfg


      Jan.

>  
> Thanks for you help.
>  
> Kind regards
> Frank

> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list