Hello,
On 07/17/07 13:32, IƱaki Baz Castillo wrote:
Hi, I'm trying to configure the imc module for IM
chat rooms and I get
nothing.
My conf related to this is:
------------------------------
modparam("imc", "db_url",
"mysql://openser:openserrw@localhost/openser")
if(method=="MESSAGE") {
if (uri=~ "sip:chat1@") {
imc_manager();
}
}
the URI condition here should match test_room@... as well, not it
matches only chat1.
Cheers,
Daniel
------------------------------
Of course "chat1" doesn't exist in subscription o location table.
So I open Linphone and send a message to "chat1(a)domain.org".org":
#create test_room
and I get in Linphone:
"[<sip:test_room@openser.ilimit.es>] :*** room was created"
And in fifo I see:
~$ openserctl fifo imc_list_rooms
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd imc_list_rooms
200 OK
ROOM:: URI=sip:chat1@domain.org MEMBERS=0 OWNER=sip:810@domain.org
But if I send a message to "test_room(a)domain.org" I get a 404 in OpenSer.
And now, what more? I've tryed with #join chat1 but no members are added
anywhere.
So I'd appreciate a help with this since I don't find enough information about
this module.
PD: Why the MySQL tables imc_rooms and imc_members are always empty
when "openserctl fifo imc_list_rooms" shows me the created rooms?
Thanks a lot.