[asterisk-bugs] [JIRA] (ASTERISK-25528) DNS: System resolver issues with TTL parse

Dmitriy Serov (JIRA) noreply at issues.asterisk.org
Tue Jan 17 14:43:10 CST 2017


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

Dmitriy Serov updated ASTERISK-25528:
-------------------------------------

    Attachment: syslog.txt
                assertions-2.txt
                assertions-1.txt

syslog.txt - grep from syslog
assertions-1.txt, assertions-2.txt - cut from asterisk logs.

> DNS: System resolver issues with TTL parse
> ------------------------------------------
>
>                 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: SVN
>         Environment: Debian/jessie
> Build from source with checkout
> 40574a2ea31f03d5a4d3914f1e20895a9b49d7f0
> and pjsip svn revision 5193 from http://svn.pjsip.org/repos
>            Reporter: dtryba
>            Assignee: George Joseph
>      Target Release: SVN, 14.0.0
>
>         Attachments: assertions-1.txt, assertions-2.txt, dns.pcap, full.txt, syslog.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