[OpenSIPS-Users] using mongodb for dynamic routing .
Sasmita Panda
spanda at 3clogic.com
Thu Nov 19 05:26:07 EST 2020
Hi All,
I am using opensips-3.1 with backend DB as mongodb . I am facing some
problem while using dynamic routing module .
cofig looks like below :
db_version_table='my_version_table'
loadmodule "cachedb_mongodb.so"
loadmodule "db_cachedb.so"
modparam("cachedb_mongodb","cachedb_url","mongodb://localhost:27017/opensipsDB.subscriber")
modparam("db_cachedb","cachedb_url","mongodb:instance1://localhost:27017/opensipsDB.subscriber")
loadmodule "drouting.so"
#--- load dynamic routing modul --------------
modparam("drouting", "db_url", "cachedb://mongodb:instance1")
modparam("drouting", "use_domain", 1)
modparam("drouting", "drd_table", "dr_gateways")
modparam("drouting", "drr_table", "dr_rules")
modparam("drouting", "drg_table", "dr_groups")
modparam("drouting", "drc_table", "dr_carriers")
my mongodb looks like below .
> db.dr_gateways.find()
{ "_id" : ObjectId("5fb4dbd7516fe875a613faf2"), "id" : 1, "gwid" : "sas",
"type" : 3, "address" : "104.131.205.232:5080", "strip" : "", "pri_prefix"
: "", "attrs" : "", "probe_mode" : 0, "state" : 0, "socket" : "",
"description" : "" }
Other collections wont give any error . But while I am starting opensips
the process is starting but gives an error as below .
*ERROR:drouting:dr_load_routing_info: column gwid has a bad type [4],
accepting **only [3]*
*.....................*
*CRITICAL:drouting:dr_reload_data_head: failed to load routing info*
*Due to this when I am trying to execute any routing logic then that wont
work . Please assist me where I am wrong . *
*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201119/6177f867/attachment.html>
More information about the Users
mailing list