<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    It is 8. I added a bit more clear phrasing on the description:<br>
    <br>
    -
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.f.ds_select_dst">http://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.f.ds_select_dst</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/01/15 00:31, Yuriy Gorlichenko
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABSP_VeyCCN=owW8p+XqQP0Mbs5E+cKs4k5-y6x9wegtQ1MJCQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Priority bassed? I've read about all algorithms of
        disatcher and can not find that anone use priority... <br>
        <br>
        <ul class=""
          style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:medium">
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">0</span>”</span> - hash over callid</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">1</span>”</span> - hash over from URI.</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">2</span>”</span> - hash over to URI.</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">3</span>”</span> - hash over request-URI.</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">4</span>”</span> - round-robin (next
              destination).</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">5</span>”</span> - hash over
              authorization-username (Proxy-Authorization or "normal"
              authorization). If no username is found, round robin is
              used.</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">6</span>”</span> - random (using rand()).</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">7</span>”</span> - hash over the content of
              PVs string. Note: This works only when the parameter
              hash_pvar is set.</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">8</span>”</span> - use first destination
              (good for failover).</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">9</span>”</span> - use weight based load
              distribution. You have to set the attribute 'weight' per
              each address in destination set.</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">10</span>”</span> - use call load
              distribution. You have to set the attribute 'duid' (as an
              unique string id) per each address in destination set.
              Also, you must set parameters 'dstid_avp' and
              'ds_hash_size'.</p>
            <p style="font-size:12px;text-align:justify">The algorithm
              can be used even with stateless proxy mode, there is no
              SIP dialog tracking depending on other modules, just an
              internal lightweight call tracking by Call-Id, thus is
              fast and suitable even for embedded systems.</p>
            <p style="font-size:12px;text-align:justify">The first
              destination selected by this algorithm is the one that has
              the least number of calls associated. The rest of the
              destination list is taken in order of the entries in set -
              anyhow, until a re-route to next destination happens, the
              load on each address can change.</p>
            <p style="font-size:12px;text-align:justify">This algorithm
              can be used only for dispatching INVITE requests as it is
              the only SIP method creating a SIP call.</p>
          </li>
          <li class="">
            <p style="font-size:12px;text-align:justify"><span class="">“<span
                  class="">X</span>”</span> - if the algorithm is not
              implemented, the first entry in set is chosen.</p>
          </li>
        </ul>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-01-09 20:23 GMT+03:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> You probably look for
              priority based routing -- see the readme of dispatcher
              module.<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 09/01/15 17:52, Yuriy Gorlichenko wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">I as wrote before - we find
                      dispatcher algorithm than can do mechanism
                      something like this:<br>
                      Try call to fist server with max priority or
                      weight. OIf this server unavailible then call
                      second server with less weight and etc.<br>
                      <br>
                      Does anyone know what ling of algorithm we can use
                      for this?</div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>