[asterisk-bugs] [Asterisk 0015827]: [patch] dnsmgr: problem handling A and SRV record changes/problem with multiple A/SRV records returned

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 17 10:11:28 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15827 
====================================================================== 
Reported By:                DennisD
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   15827
Category:                   Core/Netsock
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     closed
Target Version:             1.6.2.10
Asterisk Version:           SVN 
JIRA:                       SWP-835 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-09-03 15:54 CDT
Last Modified:              2010-06-17 10:11 CDT
====================================================================== 
Summary:                    [patch] dnsmgr: problem handling A and SRV record
changes/problem with multiple A/SRV records returned
Description: 
This ONLY happens with callcentric and only after Asterisk is up for a few
hours:

[2009-09-03 16:28:01.487] DEBUG[6851] devicestate.c: device
'SIP/callcentric' state '6'
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: ** Our capability: 0x4
(ulaw) Video flag: False Text flag: False
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: ** Our prefcodec: 0x4
(ulaw) 
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: -- Done with adding
codecs to SDP
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: Done building SDP.
Settling with this capability: 0x4 (ulaw)
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: Initializing initreq
for method INVITE - callid 6e3807ab0e1b8f406ae186e8110e9606 at dennisd.com
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:01.488] WARNING[10700] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:01.488] VERBOSE[10700] app_dial.c:     -- Called
15869091150 at callcentric
[2009-09-03 16:28:02.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 2 to 1000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:02.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:02.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:03.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 3 to 2000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:03.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:03.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:05.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 4 to 4000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:05.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:05.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:09.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 5 to 8000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:09.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:09.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:11.129] DEBUG[8281] chan_sip.c: Auto destroying SIP
dialog '64357d2a-d82cc7ab at 127.0.0.1'
[2009-09-03 16:28:11.129] DEBUG[8281] chan_sip.c: Destroying SIP dialog
64357d2a-d82cc7ab at 127.0.0.1
[2009-09-03 16:28:17.094] DEBUG[8281] acl.c: Found IP address for this
socket



======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017496 dnsmgr refreshes hostname, but changes ...
====================================================================== 

---------------------------------------------------------------------- 
 (0123542) svnbot (reporter) - 2010-06-17 10:11
 https://issues.asterisk.org/view.php?id=15827#c123542 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 271123

U   branches/1.4/main/acl.c
U   branches/1.4/main/dnsmgr.c

------------------------------------------------------------------------
r271123 | mnicholson | 2010-06-17 10:11:27 -0500 (Thu, 17 Jun 2010) | 7
lines

Set sin_family in ast_get_ip_or_srv() and removed the 'last' member of the
ast_dnsmgr_entry struct.

(closes issue https://issues.asterisk.org/view.php?id=15827)
Reported by: DennisD
Patches:
      (modified) dnsmgr_15827.patch uploaded by chappell (license 8)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=271123 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-17 10:11 svnbot         Checkin                                      
2010-06-17 10:11 svnbot         Note Added: 0123542                          
======================================================================




More information about the asterisk-bugs mailing list