<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Quickly looking at the code, the ndb_mongodb should work with this
    kind of uri. Do you get any errors?<br>
    <br>
    Can you run with debug=3 and watch for log messages from ndb_mongodb
    containing '... added server ...'. Does it have the replica set uri
    there?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 16/11/15 09:57, Kelvin Chua wrote:<br>
    </div>
    <blockquote
cite="mid:CAMF97-eUAXA54tL6vtQzFtuE3AnApY9+ZXoi28fF3_KZE1HSFg@mail.gmail.com"
      type="cite">
      <div dir="ltr">yes, 
        <div><br>
        </div>
        <div>for example:</div>
        <div><br>
        </div>
        <div>mongodb://<a moz-do-not-send="true" href="http://10.0.1.1">10.0.1.1</a>,10.0.1.2,<a
            moz-do-not-send="true"
href="http://10.0.1.3/replicaSet=rs0&slaveOk=true&readPreference=primaryPreferred">10.0.1.3/replicaSet=rs0&slaveOk=true&readPreference=primaryPreferred</a><br>
        </div>
        <div><br>
        </div>
        <div>i tried this but it didn't work.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>according to mongoc documentation, this URI should be valid</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
            href="http://api.mongodb.org/c/1.2.1/mongoc_uri_t.html">http://api.mongodb.org/c/1.2.1/mongoc_uri_t.html</a><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">Kelvin Chua</div>
        </div>
        <br>
        <div class="gmail_quote">On Thu, Nov 12, 2015 at 3:53 PM,
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Is there a specific
              format of the url for this case?<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 11/11/15 11:41, Kelvin Chua wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">
                      <div>anybody ever tried using a mongodb url with
                        replicasets and parameters to work</div>
                      <div>with kamailio?</div>
                      <br clear="all">
                      <div>
                        <div>Kelvin Chua</div>
                      </div>
                    </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>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a moz-do-not-send="true" href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</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"
              rel="noreferrer" 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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/kat">http://asipto.com/kat</a></pre>
  </body>
</html>