[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 09:26:26 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 09:26 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 ...
====================================================================== 

---------------------------------------------------------------------- 
 (0123538) svnbot (reporter) - 2010-06-17 09:26
 https://issues.asterisk.org/view.php?id=15827#c123538 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 270975

_U  branches/1.6.2/
U   branches/1.6.2/main/acl.c
U   branches/1.6.2/main/dnsmgr.c

------------------------------------------------------------------------
r270975 | mnicholson | 2010-06-16 15:41:40 -0500 (Wed, 16 Jun 2010) | 18
lines

Merged revisions 270974 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r270974 | mnicholson | 2010-06-16 15:34:31 -0500 (Wed, 16 Jun 2010) | 8
lines
  
  Set sin_family to AF_INET when doing lookups, also reset sin_port the
first time the ip address changes.

  (closes issue https://issues.asterisk.org/view.php?id=17496)
  Reported by: ManChicken
  
  (closes issue https://issues.asterisk.org/view.php?id=15827)
  Reported by: DennisD
  Patches:
        dnsmgr_15827.patch uploaded by chappell (license 8)
  Tested by: DennisD, gentlec, damage, wimpy
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-17 09:26 svnbot         Checkin                                      
2010-06-17 09:26 svnbot         Note Added: 0123538                          
======================================================================




More information about the asterisk-bugs mailing list