From miconda@gmail.com Wed Jun 1 12:41:10 2011 From: Daniel-Constantin Mierla To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] IMC module unresolved issues Date: Wed, 01 Jun 2011 12:41:01 +0200 Message-ID: <4DE6173D.6000409@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2022460180==" --===============2022460180== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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. > > 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(a)abc.hr : "#create chat-111" > > DEBUG log returns following: > May 30 18:01:23 ser-test > /usr/local/kamailio-ozren/sbin/kamailio[13225]: INFO: