[asterisk-bugs] [Asterisk 0015321]: [patch] Patch to make DUNDi load balance across hosts with the same weight

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 12 17:34:02 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15321 
====================================================================== 
Reported By:                irish
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15321
Category:                   PBX/pbx_dundi
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.25.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-12 17:32 CDT
Last Modified:              2009-06-12 17:34 CDT
====================================================================== 
Summary:                    [patch] Patch to make DUNDi load balance across
hosts with the same weight
Description: 
Presently in 1.4.25 dundi lookups return the first existing member.  If
multiple members tie for the top rank, only the first host is called.

By trivially changing the function passed to qsort, tied weights are
shuffled within the tied partition.  Overall ranking of weights is
maintained.  The result: when dundi lookup fetches the first member, it
load balances across the top tier weight.  I've uploaded the patch as a
udiff in the information field.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-12 17:34 irish          Summary                  Patch to make DUNDi
load balance across hosts with the same weight => [patch] Patch to make DUNDi
load balance across hosts with the same weight
======================================================================




More information about the asterisk-bugs mailing list