[OpenSIPS-Users] NATed REGISTERs are failing

Iñaki Baz Castillo ibc at aliax.net
Wed Oct 29 14:30:47 CET 2008


2008/10/29 Jeff Pyle <jpyle at fidelityvoice.com>:
> Team,
>
> With Iñaki's help it appears we have discovered bug.  Replies are returning to the private IP, not the public IP of the NAT router.  See below.  Some information has been obfuscated to protect the guilty:


Of course the response must be *always* sent to the *real* source IP
(and the port indicated in Via sent-by if "rport" is not used or
forced).
Responses to the REGISTER contain "received=PUBLIC_IP" so they should
be sent there instead of the IP indicated in Via sent-by.


> U +169.011646 60.70.68.231:5060 -> 60.70.82.42:5060
> REGISTER sip:60.70.82.42 SIP/2.0.
> Via: SIP/2.0/UDP 192.168.1.103:5060;branch=z9hG4bK-e3bd0c30.

> #
> U +0.002399 60.70.82.42:5060 -> 192.168.1.103:5060
> SIP/2.0 100 Trying.
> Via: SIP/2.0/UDP 192.168.1.103:5060;branch=z9hG4bK-e3bd0c30;rport=5060;received=60.70.68.231.

> #
> U +0.002064 60.70.82.42:5060 -> 192.168.1.103:5060
> SIP/2.0 401 Unauthorized.
> Via: SIP/2.0/UDP 192.168.1.103:5060;branch=z9hG4bK-e3bd0c30;rport=5060;received=60.70.68.231.


This is a regression AFAIK. Which version are you using?


-- 
Iñaki Baz Castillo
<ibc at aliax.net>


More information about the Users mailing list