<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>that's generated internally, based on some attributes such as
      pid, startup timestamp, counter... If you ahave many kamailio
      instances writing to same db, then you have to set server_id
      global parameter so it is used in ruid and avoids some (very rare)
      potential conflicts.</p>
    <p>If it is a single kamailio instance, then maybe a db operation
      failed in the middle (e.g., when it was a restart of db server)
      and the state in memory is not sync'ed with the db. You can remove
      the record from db.</p>
    <p>I also pushed small patches to register/usrloc to use a safer
      version of ruid generation on a single instance, to cover cases
      when someone forks its own processes (not via kamailio code).</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 18.09.18 01:33, David Cunningham
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHGbP-9hTx2T1wxK1jARFKtu=9oSO1TaXHrhwHOnNcsztNKa3A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>We are debugging an issue with location records having
          duplicate "ruid" values, which aren't allowed by the table
          index. Can anyone tell us where the "ruid" value comes from?
          Is it a function of some other variable?</div>
        <div><br>
        </div>
        <div>Thanks in advance,<br>
        </div>
        <div><br>
          -- <br>
          <div class="gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>David Cunningham, Voisonics Limited<br>
                                <a href="http://voisonics.com/"
                                  target="_blank" moz-do-not-send="true">http://voisonics.com/</a><br>
                                USA: +1 213 221 1092<br>
                                New Zealand: +64 (0)28 2558 3782</div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
    <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 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>