Quickly looking at the code, the ndb_mongodb should work with this kind of uri. Do you get any errors?

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?

Cheers,
Daniel

On 16/11/15 09:57, Kelvin Chua wrote:
yes, 

for example:

mongodb://10.0.1.1,10.0.1.2,10.0.1.3/replicaSet=rs0&slaveOk=true&readPreference=primaryPreferred

i tried this but it didn't work.


according to mongoc documentation, this URI should be valid

http://api.mongodb.org/c/1.2.1/mongoc_uri_t.html



Kelvin Chua

On Thu, Nov 12, 2015 at 3:53 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Is there a specific format of the url for this case?

Cheers,
Daniel


On 11/11/15 11:41, Kelvin Chua wrote:
anybody ever tried using a mongodb url with replicasets and parameters to work
with kamailio?

Kelvin Chua


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat