[OpenSIPS-Users] mongo query and params confusion

Tito Cumpen tito at xsvoce.com
Tue Sep 9 01:50:03 CEST 2014


Hello Group,


I am perplexed about what the correct params are to point opensips to an
instance of mongodb


I am currently using these


loadmodule "db_cachedb.so"

loadmodule "cachedb_mongodb.so"


modparam("cachedb_mongo","cachedb_url","mongodb:instance1:
//162.XXX.XX.XXXX:27017/AOR.Location")

which triggers this error

 Parameter <cachedb_url> not found in module <cachedb_mongo> - can't set

Alternatively I have tried using :

 modparam("db_cachedb","cachedb_url","mongodb:instance1://162.XX.XX.XX:27017/AOR.Location")

which would cause the following error when running this query

                cache_raw_query("mongodb","{ \"op\" : \"find\", \"ns\" :
\"AOR.Location\", \"query\": {\"User\" : $rU} }","$avp(mongo_result)");


ERROR:core:cachedb_raw_query: failed to get connection for grp name [}

I am using Opensips version 1.11

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140908/f7d4e926/attachment.htm>


More information about the Users mailing list