[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:25:16 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:25 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 ...
====================================================================== 

---------------------------------------------------------------------- 
 (0123536) svnbot (reporter) - 2010-06-17 09:25
 https://issues.asterisk.org/view.php?id=15827#c123536 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 270974

U   trunk/main/acl.c
U   trunk/main/dnsmgr.c

------------------------------------------------------------------------
r270974 | mnicholson | 2010-06-16 15:34:31 -0500 (Wed, 16 Jun 2010) | 11
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=270974 

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




More information about the asterisk-bugs mailing list