[asterisk-bugs] [JIRA] (ASTERISK-24371) res_pjsip: DNS resolution on pulls SRV records for UDP transport even when DNS has entries for other transport types

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Oct 1 09:09:28 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-24371:
------------------------------------

    Affects Version/s: 12.6.0
                       13.0.0-beta2

> res_pjsip: DNS resolution on pulls SRV records for UDP transport even when DNS has entries for other transport types
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24371
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24371
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip, Resources/res_pjsip
>    Affects Versions: 12.6.0, 13.0.0-beta2
>            Reporter: Matt Jordan
>         Attachments: log.txt
>
>
> Given the following DNS entry:
> {noformat}
> digium at digium-test-03 /var/log/asterisk $ dig @127.0.1.1 foo.bar.sipit.net ANY
> ; <<>> DiG 9.9.5-3-Ubuntu <<>> @127.0.1.1 foo.bar.sipit.net ANY
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56585
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 1, ADDITIONAL: 12
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;foo.bar.sipit.net.		IN	ANY
> ;; ANSWER SECTION:
> foo.bar.sipit.net.	600	IN	NAPTR	1 0 "s" "SIPS+D2T" "" _sips._tcp.foo.bar.sipit.net.
> foo.bar.sipit.net.	600	IN	NAPTR	2 0 "s" "SIP+D2T" "" _sip._tcp.foo.bar.sipit.net.
> foo.bar.sipit.net.	600	IN	NAPTR	3 0 "s" "SIP+D2U" "" _sip._udp.foo.bar.sipit.net.
> ;; AUTHORITY SECTION:
> pexip.sipit.net.	600	IN	NS	ns.sipit.net.
> ;; ADDITIONAL SECTION:
> foo1.bar.sipit.net.	600	IN	A	132.177.253.37
> foo1.bar.sipit.net.	600	IN	AAAA	2606:4100:3880:2520::8:3
> foo2.bar.sipit.net.	600	IN	A	132.177.253.38
> foo2.bar.sipit.net.	600	IN	AAAA	2606:4100:3880:2520::8:4
> ns.sipit.net.		3600	IN	A	132.177.252.2
> _sips._tcp.foo.bar.sipit.net. 43200 IN SRV	0 50 5061 foo2.bar.sipit.net.
> _sips._tcp.foo.bar.sipit.net. 43200 IN SRV	0 50 5061 foo1.bar.sipit.net.
> _sip._tcp.foo.bar.sipit.net.	43200 IN SRV	0 50 5060 foo2.bar.sipit.net.
> _sip._tcp.foo.bar.sipit.net.	43200 IN SRV	0 50 5060 foo1.bar.sipit.net.
> _sip._udp.foo.bar.sipit.net.	43200 IN SRV	0 50 5060 foo1.bar.sipit.net.
> _sip._udp.foo.bar.sipit.net.	43200 IN SRV	0 50 5060 foo2.bar.sipit.net.
> ;; Query time: 7 msec
> ;; SERVER: 127.0.1.1#53(127.0.1.1)
> ;; WHEN: Mon Sep 29 15:34:33 CDT 2014
> ;; MSG SIZE  rcvd: 607
> {noformat}
> pjproject will currently fail to use the TCP or TLS SRV entries. Instead, it uses UDP only. If UDP fails, the INVITE message will fail, and the other transports will not be attempted.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list