<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    On 8/26/10 3:23 PM, Geoffrey Mina wrote:
    <blockquote
      cite="mid:AANLkTim73CmNmZoy5NqSa4FWTWpgWif0Y24Y9mgveYWV@mail.gmail.com"
      type="cite">Hello,<br>
      I have a question about the "priority" in the dispatcher module.&nbsp;
      I looked in the docu-wiki and there was nothing which actually
      described how this field is used (exactly), so I can only guess or
      ask the list.&nbsp; <br>
    </blockquote>
    <br>
    the priority is used to sort the records in memory. IIRC, the
    highest priority the first in the list (for same priority should be
    the order returned by database query result).<br>
    <br>
    If you use round-robin, the the first destination used is the one
    with highest priority, the next, ... and loop again.<br>
    <br>
    The priority is particularly good for classic serial forking
    (algorithm 9), where always first destination is the highest
    priority.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
      cite="mid:AANLkTim73CmNmZoy5NqSa4FWTWpgWif0Y24Y9mgveYWV@mail.gmail.com"
      type="cite">
      <br>
      Say I have 3 destinations in a set:<br>
      <br>
      set: 1<br>
      dest: sip:<a moz-do-not-send="true" href="http://1.2.3.4:5060">1.2.3.4:5060</a><br>
      priority: 1<br>
      <br>
      set: 1<br>
      dest: sip:<a moz-do-not-send="true" href="http://1.2.3.5:5060">1.2.3.5:5060</a><br>
      priority: 1<br>
      <br>
      set: 1<br>
      dest: sip:<a moz-do-not-send="true" href="http://1.2.3.6:5060">1.2.3.6:5060</a><br>
      priority: 0<br>
      <br>
      <br>
      I am using ds_select_domain("1","4") to retrieve my list of
      destinations.<br>
      <br>
      In this scenario, would the calls only route to 1.2.3.6 if .4 and
      .5 were both out of service?<br>
      <br>
      Thanks.<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
  </body>
</html>