thanks for quick response and clarification, it helped a lot.
I was indeed expecting records in database at runtime, but until
your latest updates to imc module, the module didn't write to
database even at shutdown. Now, I can see records in the database
when I shutdown Kamailio. When I start up Kamailio it populates
cache based on records from database and deletes records in the
database.
great, thanks for reporting back it's working.
Any issues still going on with the module?
Best regards,
Daniel
Best regards,
Ozren
On Wed, Jun 1, 2011 at 12:41 PM,
Daniel-Constantin Mierla <miconda@gmail.com>
wrote:
Hello,
the module is writing to database only at shutdown,
otherwise it keeps everything in cache -- just in case you
expected to see some records in database at runtime.
However, I think there was an issue that even at shutdown
the module didn't write back to database. Please fetch the
latest git branch 3.1 and try again for this purpose.
Thanks,
Daniel
On 6/1/11 10:48 AM, Ozren Lapcevic wrote:
Hi,
did anyone run into similar problems or have
successfully set up IMC module with mysql? Can you
please share your know-how on the subject?
Besides issue described below, I also had several
other issues, but I think they all might be related to
the fact that my rooms and members are only stored in
cache, but not in the database. To repeat, this is
really strange behavior because all other modules that
I'm using write to the database without a problem.
However, that data is not persisted/saved in the
imc_rooms and imc_members tables in the database.
Any clues what might be the problem here?
Any help is greatly appreciated.
Best regards,
Ozren Lapcevic
PS
I'm runing Kamailio 3.1.4 with default cfg file
with enabled mysql, multidomain, usrlocdb, auth
and NAT. I can register clients, establish calls,
send IMs, etc. imc_rooms and imc_members tables
were created when kamailio was installed. I've
also checked imc-create.sql script and tables are
correctly created.
The same DBURL used for imc is also used for
auth_db, domain and usrloc modules and I haven't
experienced any problems with those modules and
database connection/persistence. domain, location,
version and subscriber tables are correctly
populated.
I'm not getting any errors from imc_manager(), it
returns 200 OK. I can't trace any errors in DEBUG
related to problems with mysql database.