Hello, you can ignore them for the moment, at least in this case it is about a null value and the type doesn't matter much.
I have in plan to add a schema check for db_mongodb, but I haven't gotten the time yet. As a solution for now, I will push soon a small patch to catch the null value and print dbg instead of info. Cheers, Daniel On 16.05.19 12:15, José Seabra wrote: > 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-index > 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:[email protected]:5674;transport=UDP",/ > /"expires" : ISODate("2019-05-15T20:33:26Z"),/ > /"q" : -1,/ > /"callid" : > "[email protected] > <mailto:[email protected]>",/ > /"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 > > -- > Cumprimentos > José Seabra > > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
