New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRV request falls back to A/AAAA prematurely #57
Comments
Do you know of an existing domain that do not have a UDP SRV record but have TCP one so that I can debug this without having to configure a new domain? |
fv.bunnykick.ca
…On Fri, Aug 4, 2017 at 1:36 PM, Ghislain MARY ***@***.***> wrote:
Do you know of an existing domain that do not have a UDP SRV record but
have TCP one so that I can debug this without having to configure a new
domain?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdEjOyA7nl4HVYXe0GerPb38NygzDXeGks5sU1aVgaJpZM4Ot8Yt>
.
--
Sincerely,
Russell Treleaven
sip:rtreleaven@sip.bunnykick.ca
|
workaround is to add the transport to the uri joe@your_domain.com;transport=tcp |
I've checked, this is not a bug. If you do not specify the transport to use, the transport is UDP and then it is perfectly ok to perform the SRV query for _sip._udp.your_domain.com. |
This is absolutely false. RFC 3263 has a very clear process for doing NAPTR, SRV, and A/AAAA lookups, in that order. Please, take some time and read https://tools.ietf.org/html/rfc3263 Specifically section 4.1, selecting a protocol. |
Please re-open this bug. |
I see no "MUST" here, from RFC3263: ... if no transport protocol or port is specified, and the BUT SIP RFC 3261 clearly mandates UDP as the default, with TCP as a fallback. So both should definitely be tried. UDP->TCP. SRV lookups should definitely parse for all available transports/protocols, to attempt to fulfill the request as well possible. with the following proviso/caveat (emphasis on the transport parameter): "
" Although NAPTR would be more accommodating. |
please reopen this bug |
version
OSX Desktop 4.0 - QT 5.9.0
Core 3.11.2-158-g4c291e2
steps to reproduce
configure network->sip_udp_port = enabled
configure network->sip_tcp_port = enabled
create a tcp SRV record for your_domain.com
ensure that no UDP SRV record exists for your_domain.com
place a call to joe@your_domain.com
observed
2017-08-04 12:21:32:797 MESSAGE resolver_process_data dns_res_check() in progress
2017-08-04 12:21:32:837 MESSAGE No SRV result for [_sip._udp.your_domain.com], trying A/AAAA.
expected
resolver should try SRV query for UDP, TCP and possibly TLS before falling back to A/AAAA
Alternately, implement NAPTR support
Background
UDP is becoming less and less suitable for SIP transport.
Therefore an IDS/IPS can be tricked into blocking legitimate ip addresses.
The text was updated successfully, but these errors were encountered: