<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I just pushed a patch to set server_id inside ul.add rpc command:</p>
    <p>  -
<a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/commit/c681adedc7284b9e681d37ad87a30251c02e3508">https://github.com/kamailio/kamailio/commit/c681adedc7284b9e681d37ad87a30251c02e3508</a></p>
    <p>Can you give it a try? If works as expected, then I am going to
      backport it.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 13.08.18 09:22, Darren Williams
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACp8pLYvE3VZ-HMRm8vfFf1DF0HCfmgV4BQG2D=+AQV8y35uJg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div>I am currently using multiple instances of Kamailio with a
          common database and using the usrloc module with db_mode=4 and
          server_id to filter the contacts that get loaded at startup on
          each server.</div>
        <div><br>
        </div>
        <div>The problem I seem to have is that using the RPC call
          ul.add, I cannot see any parameter to send to specify the
          server_id. The server_id that the contact is given is 0. If I
          manually go into the db and modify the server_id everything
          works as expected. I think I must be missing something
          somewhere as I'm sure you shouldn't need to do this.</div>
        <div><br>
        </div>
        <div>Can anyone help please.</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Daz</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></pre>
  </body>
</html>