From ozren.lapcevic at gmail.com Wed Jun 1 10:48:38 2011 From: ozren.lapcevic at gmail.com (Ozren Lapcevic) Date: Wed, 1 Jun 2011 10:48:38 +0200 Subject: [SR-Users] IMC module unresolved issues Message-ID: 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. Best regards Ozren On Mon, May 30, 2011 at 6:28 PM, Ozren Lapcevic wrote: > Hi all, > > I'm trying to configure IMC module and get it to work properly but I've run > into problems with saving IMC module data to mysql database. > > I'm using following code provided in IMC module documentation: > > modparam("imc", "db_url", DBURL) > > ## route block ### > if(is_method("MESSAGE") && (uri=~ "sip:chat-[0-9]+@") || (uri=~ > "sip:chat-manager@")) { > xlog("L_INFO", "going to imc: F [$fu] T [$tu] B [$rb]\n"); > > if(imc_manager()) > sl_send_reply("200", "ok - imc_manager()"); > else > sl_send_reply("500", "command error"); > exit; > } > > I am creating chat room with following message sent to chat-manager at abc.hr: > "#create chat-111" > > DEBUG log returns following: > May 30 18:01:23 ser-test /usr/local/kamailio-ozren/sbin/kamailio[13225]: > INFO: