[asterisk-bugs] [Asterisk 0012312]: [patch] DNS SRV lookups causing re-registration problems

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 5 17:19:53 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12312 
====================================================================== 
Reported By:                jrast
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   12312
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Target Version:             1.6.2
Asterisk Version:           1.4.18 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-03-26 17:38 CDT
Last Modified:              2009-02-05 17:19 CST
====================================================================== 
Summary:                    [patch] DNS SRV lookups causing re-registration
problems
Description: 
SIP peer uses DNS SRV records which list multiple entries for
_sip._udp.domain.  

Asterisk is selecting one and successfully registering with it.  When
attempting to re-register, Asterisk is not selecting the same host. 
Instead it is ALWAYS selecting another host, sending seven SIP REGISTER
requests to it, then failing over to the next (correct) host, at which
point the re-register succeeds.  However, this process exceeds the
registration expiry and the registration is timing out on every
re-registration cycle.

Peer in question is callcentric.com.
====================================================================== 

---------------------------------------------------------------------- 
 (0099569) svnbot (reporter) - 2009-02-05 17:19
 http://bugs.digium.com/view.php?id=12312#c99569 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 173771

_U  trunk/

------------------------------------------------------------------------
r173771 | mmichelson | 2009-02-05 17:19:52 -0600 (Thu, 05 Feb 2009) | 27
lines

Blocked revisions 173770 via svnmerge

........
r173770 | mmichelson | 2009-02-05 17:19:16 -0600 (Thu, 05 Feb 2009) | 20
lines

Fix logic regarding when to perform an SRV lookup for outgoing REGISTER
requests

With this fix, we only will perform an SRV lookup at the following times:

* The first time we register with a remote registrar
* If we send a REGISTER but do not receive a response
* If the sendto() function returns an error

While I wrote the patch that fixes this issue, a huge amount of credit is
due
to Brett Bryant, who wrote the initial patch on which I based this one.

(closes issue http://bugs.digium.com/view.php?id=12312)
Reported by: jrast
Patches:
      12312.patch uploaded by putnopvut (license 60)
Tested by: blitzrage

Review: http://reviewboard.digium.com/r/132/


........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-05 17:19 svnbot         Checkin                                      
2009-02-05 17:19 svnbot         Note Added: 0099569                          
======================================================================




More information about the asterisk-bugs mailing list