[asterisk-bugs] [JIRA] (ASTERISK-25528) DNS TTL parse error
dtryba (JIRA)
noreply at issues.asterisk.org
Fri Nov 6 10:58:33 CST 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228194#comment-228194 ]
dtryba commented on ASTERISK-25528:
-----------------------------------
13.6.0 behave completly different. The A records appear to be cached somewhere (dnsmgr is disabled)
A restart of asterisk (during previous tests a register was succefully resolved):
{noformat}
[Nov 6 17:47:57] DEBUG[7562] pjsip: endpoint Request msg REGISTER/cseq=55164 (tdta0x7f0c8c004fd0) created.
[Nov 6 17:47:57] DEBUG[7562] res_pjsip_outbound_registration.c: Outbound REGISTER attempt 1 to 'sip:sip.itco.nl' with client 'sip:tryba at sip.itco.nl'
[Nov 6 17:47:57] DEBUG[7562] pjsip: tsx0x7f0c8c006 .Transaction created for Request msg REGISTER/cseq=55165 (tdta0x7f0c8c004fd0)
[Nov 6 17:47:57] DEBUG[7562] pjsip: tsx0x7f0c8c006 Sending Request msg REGISTER/cseq=55165 (tdta0x7f0c8c004fd0) in state Null
[Nov 6 17:47:57] DEBUG[7562] pjsip: sip_resolve.c .Starting async DNS SRV query: target=_sip._udp.sip.itco.nl, transport=Unspecified, port=0
[Nov 6 17:47:57] DEBUG[7562] pjsip: _sip._udp.sip. .Starting async DNS SRV query_job: target=_sip._udp.sip.itco.nl:5060
[Nov 6 17:47:57] DEBUG[7562] pjsip: resolver.c .Nameserver 10.0.1.71:53 state changed Active --> Probing
[Nov 6 17:47:57] DEBUG[7562] pjsip: resolver.c .Nameserver 10.255.254.79:53 state changed Active --> Probing
[Nov 6 17:47:57] DEBUG[7562] pjsip: resolver.c .Transmitting 39 bytes to NS 0 (10.0.1.71:53): DNS SRV query for _sip._udp.sip.itco.nl: Success
[Nov 6 17:47:57] DEBUG[7562] pjsip: resolver.c .Transmitting 39 bytes to NS 1 (10.255.254.79:53): DNS SRV query for _sip._udp.sip.itco.nl: Success
[Nov 6 17:47:57] DEBUG[7562] pjsip: tsx0x7f0c8c006 .State changed from Null to Calling, event=TX_MSG
[Nov 6 17:47:57] DEBUG[7567] pjsip: resolver.c Received 135 bytes DNS response from 10.0.1.71:53
[Nov 6 17:47:57] DEBUG[7567] pjsip: resolver.c Nameserver 10.0.1.71:53 state changed Probing --> Active
[Nov 6 17:47:57] DEBUG[7567] pjsip: _sip._udp.sip. SRV query_job for _sip._udp.sip.itco.nl completed, 2 of 2 total entries selected:
[Nov 6 17:47:57] DEBUG[7567] pjsip: _sip._udp.sip. 0: SRV 1 1 5060 sip1.itco.nl (109.235.32.56)
[Nov 6 17:47:57] DEBUG[7567] pjsip: _sip._udp.sip. 1: SRV 1 1 5060 sip0.itco.nl (109.235.32.55)
[Nov 6 17:47:57] DEBUG[7567] pjsip: _sip._udp.sip. Server resolution complete, 2 server entry(s) found
{noformat}
is backed by only these DNS requests:
{noformat}
25 129.994977 10.0.3.176 -> 10.0.1.71 DNS 83 Standard query 0x0001 SRV _sip._udp.sip.itco.nl
26 129.995046 10.0.3.176 -> 10.255.254.79 DNS 83 Standard query 0x0001 SRV _sip._udp.sip.itco.nl
27 129.995309 10.0.1.71 -> 10.0.3.176 DNS 179 Standard query response 0x0001 SRV 1 1 5060 sip0.itco.nl SRV 1 1 5060 sip1.itco.nl
28 129.997371 10.255.254.79 -> 10.0.3.176 DNS 179 Standard query response 0x0001 SRV 1 1 5060 sip1.itco.nl SRV 1 1 5060 sip0.itco.nl
{noformat}
> DNS TTL parse error
> -------------------
>
> Key: ASTERISK-25528
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25528
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/General
> Affects Versions: 13.6.0
> Environment: Debian/jessie
> Build from source with checkout
> 40574a2ea31f03d5a4d3914f1e20895a9b49d7f0
> and pjsip svn revision 5193 from http://svn.pjsip.org/repos
> Reporter: dtryba
> Assignee: dtryba
> Attachments: dns.pcap, full.txt
>
>
> Trying to register to a SIP cluster using NAPTR/SRV records fails due to DNS lookup failures. The failures are due to incorrect parsing the TTL for the records.
> sip.itco.nl has both NAPT and SRV records (with short ttls (300)), The real edge proxies (sip[01].itco.nl)) have a longer ttl (86400). Responses aren't added to the result set with debug responses:
> {noformat}
> dns_core.c: Query '0x7f66cc00a3c8': Could not add record, invalid TTL '-822083584'
> {noformat}
> resulting in
> {noformat}
> res_pjsip/pjsip_resolver.c: [0x7f66cc009588] Resolution completed - 0 viable targets
> {noformat}
> {noformat}
> [transport-udp]
> type=transport
> protocol=udp
> bind=0.0.0.0
> [transport-tcp]
> type=transport
> protocol=tcp
> bind=0.0.0.0
> [tryba]
> type=endpoint
> transport=transport-udp
> context=tryba
> disallow=all
> allow=alaw
> outbound_auth=tryba_auth
> force_rport=yes
> direct_media=no
> ice_support=yes
> auth=tryba_auth
> [tryba_auth]
> type=auth
> auth_type=userpass
> password=******
> username=tryba
> [tryba_register]
> type=registration
> server_uri=sip:sip.itco.nl
> client_uri=sip:tryba at sip.itco.nl
> contact_user = tryba
> outbound_auth=tryba_auth
> expiration=60
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list