Merge changes from asterisk/team/kpfleming/SRV-priority-handling

Previously, the SRV record support in Asterisk was broken.  There was no
guarantee on what record Asterisk would choose to actually use.  This set of
changes improves the situation by ensuring that Asterisk will choose the
highest priority record.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@88719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-11-05 20:40:01 +00:00
parent 9cb94c7cde
commit 5d140cb9c2
2 changed files with 151 additions and 45 deletions

View File

@@ -26,9 +26,10 @@
/*!
\file srv.h
\brief Support for DNS SRV records, used in to locate SIP services.
\note Note: The Asterisk DNS SRV record support is broken, it only
supports the first DNS SRV record and will give no load
balancing or failover support.
\note Note: This SRV record support is very minimal; it will only
return the first (lowest priority) answer that is received, and
has no provisions for the 'weight' elements of the records or
retrying if the first returned result fails.
*/
/*! Lookup entry in SRV records Returns 1 if found, 0 if not found, -1 on hangup