I tried to use my own custom roster by integrating mod_roster_odbc. I changed the config file too (commented out mod_roster and make a new entry for mod_roster_odbc). After running with this setup, mod_roster_odbc module is getting started ( I put some logs to in start function, those I can see). But none of other function is not getting called as I alter presence or logged out/logged in.
Please help to identify where I am making the mistake.
I think I know the answer to this. many websites tell you to use
mod_roster_odbc.erlto create your own rostering. I believe thats your problem. Many of the functions are merged intomod_roster.erlfile itself. I dont think this is mentioned anywhere.So what you need to do is in
ejabberd.cfgenablemod_roster_odbcbut dont remove themod_roster.erlfile with theodbcfile. This file will take care.Finally you need to create a
rosteruserstable (or something like it) so that ejabber can query for friend list. After these changes, just restart ejabber server and you should be good to go. hope this helps.