I have tried that but kamailio gave me the following error:0(2344) ERROR: <core> [db.c:435]: db_check_table_version(): invalid version 0 for table presentity found, expected 4 (check table structure and table "version")0(2344) ERROR: presence [presence.c:358]: mod_init(): error during table version check0(2344) ERROR: <core> [sr_module.c:945]: init_mod(): Error while initializing module presence (/usr/local/lib64/kamailio/modules/presence.so)ERROR: error while initializing modulesPresence module configuration:modparam("presence", "server_address", "sip:10.0.20.100:5080")modparam("presence", "subs_db_mode", 3)modparam("presence", "expires_offset", 60)modparam("presence", "send_fast_notify", 0)modparam("presence", "clean_period", 30)modparam("presence", "publ_cache", 0)modparam("presence", "sip_uri_match", 1)modparam("presence", "waitn_time", 1)modparam("presence", "notifier_processes", 0)modparam("presence", "db_url", "mongodb://localhost/kamailio")Best RegardsJosé Seabra2015-08-17 16:33 GMT+01:00 Daniel-Constantin Mierla <miconda@gmail.com>:Hello,
do not remember exactly if you need to create an empty collection, anyhow, the main idea is that there is no table definition, because mongo is a document-storage like engine. The records store all the details about all the fields.
In other words, you should be ready to go after basic setup of mongodb collection and configuring kamailio modules to use the server.
Cheers,
Daniel
On 17/08/15 16:51, José Seabra wrote:
Hello all,I would like to test my presence server using db_mongodb as database server instead of using mysql, but i don't find any documentation explaining how i can configure mongodb database(data structure) for presence or even for the other kamailio modules.
Can someone guide me in this setup?
Best Regards
--
CumprimentosJosé Seabra
_______________________________________________ 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
_______________________________________________
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
--CumprimentosJosé Seabra