Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Record-Route not added by proxy in DNS target > 1 #76

Open
akafazov opened this issue Sep 11, 2015 · 3 comments
Open

Record-Route not added by proxy in DNS target > 1 #76

akafazov opened this issue Sep 11, 2015 · 3 comments

Comments

@akafazov
Copy link

When OverSIP makes DNS based load balancing to route traffic to two or more SIP proxies, the Record-Route header is added only when forwarding to the first DNS target, but not to any of the subsequent ones. This might lead to incorrect routes in SUBSCRIBE/NOTIFY scenarios, so that NOTIFY requests are not being routed to the client.

In our case we have OverSIP taking WSS traffic and forwarding it to two SIP proxies. The IPs of the SIP proxies are resolved by DNS.
If one of the SIP proxies behind OverSIP is offline, SIP REGISTER is sent 4 times to the first target (DNS IP has 2 targets for the hostname) and the 5th REGISTER goes to the SIP proxy that is online. In this case the subsequent SUBSCRIBE messages do not have the Record-Route headers added to them, which leads to incorrect routing for the following NOTIFYs.

@ibc
Copy link
Member

ibc commented Sep 16, 2015

Thanks for the report. Let me please some days until I can get deeper into this.

@ibc
Copy link
Member

ibc commented May 25, 2016

May you please show which kind of DNS entries produces the issue? Are they NAPTR? SRV? both?

@ibc
Copy link
Member

ibc commented May 25, 2016

If it's possible for you, please try commenting lines from 444 to 449 here:

https://github.com/versatica/OverSIP/blob/master/lib/oversip/sip/client_transaction.rb#L444

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants