Hello there, I'm testing usrloc module with mongodb and i have a couple of questions to do.
What i would like to know/have confirmation is if the fields that are specified in the following link https://kamailio.org/docs/db-tables/kamailio-db-5.2.x.html#gen-db-location-i... can be used to create indexes in mongodb?
I'm noticing that when a register is updated/deleted or expires kamailio prints the following INFO logs:
*db_mongodb [mongodb_dbase.c:526]: db_mongodb_get_columns(): unhandled data type column (methods) type id (10), use DB1_STRING as default* *db_mongodb [mongodb_dbase.c:526]: db_mongodb_get_columns(): unhandled data type column (instance) type id (10), use DB1_STRING as default*
These fields (*methods and **instance*) are stored in mongodb document with a null string, e.g:
*{* * "_id" : ObjectId("5cdc775a6472740055289a11"),* * "username" : "x1000",* * "contact" : "sip:x1000@192.168.1.1:5674;transport=UDP",* * "expires" : ISODate("2019-05-15T20:33:26Z"),* * "q" : -1,* * "callid" : "sipp-ci2-edge-sip-proxy1-20190515203220-1-21@172.31.2.61 sipp-ci2-edge-sip-proxy1-20190515203220-1-21@172.31.2.61",* * "cseq" : 2,* * "flags" : 0,* * "cflags" : 0,* * "user_agent" : "sipp",* * "received" : "sip:191.30.10.23:8888 http://191.30.10.23:8888",* * "path" : "sip:172.31.2.61:5060;received=sip:191.30.10.23:8888;lr",* * "socket" : "udp:172.31.2.11:5060 http://172.31.2.11:5060",* * "methods" : null,* * "last_modified" : ISODate("2019-05-15T20:32:26Z"),* * "ruid" : "uloc-15-5cdc7756-55-1",* * "instance" : null,* * "reg_id" : 0,* * "server_id" : 21,* * "connection_id" : -1,* * "keepalive" : 0,* * "partition" : 0* *}*
Should i be concerned about that log msg? how can i avoid it?
Thanks Regards