<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>indeed, if the value of the pv is the same, it should be the same
      hash id and same destination selected, if they are the in the same
      order.</p>
    <p>Therefore the first thing to check is the list of the dispatcher
      records in memory via rpc/mi. If you stored the dispatcher records
      in database, I noticed that the mysql server can return different
      order for there records when doing something like 'select * ...'.
      To ensure a specific order always, you can set the priority value
      even if you don't use priority based routing algorithm.</p>
    <p>Otherwise, there was no change to the dispatcher code related to
      this algorithm between 4.3.4 and 4.3.7.<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 14.11.19 14:01, Barry Flanagan
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALJb549R8VSOkSiye_UFmGNYiUYDcTkzmUw2fz6r60No1KHdtw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I have multiple Kamailio instances using dispatcher using
          alg “7” - hash over the content of PVs string, both using the
          same dispatcher list.</div>
        <div><br>
        </div>
        <div>Is it reasonable to expect both Kamailio, given the same
          hash_pvar, to select the same host from the same set? </div>
        <div>Looking at the source I do not see any reason why not, but
          I am getting different results from the two Kamailio servers.
          The only difference between them is different minor version
          numbers - 4.3.4 and 4.3.7</div>
        <div><br>
        </div>
        <div>I want to ensure that calls with the same hash_pvar value
          go to the same backend no matter which Kamailio processes the
          request.</div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">-Barry Flanagan<br>
              <br>
              <br>
              <br>
              <br>
              <br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>