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(); } } ------------------------------
Of course "chat1" doesn't exist in subscription o location table.
So I open Linphone and send a message to "chat1@domain.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@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.
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@domain.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@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.
El Tuesday 17 July 2007 12:49:08 Daniel-Constantin Mierla escribió:
if(method=="MESSAGE") { if (uri=~ "sip:chat1@") { imc_manager(); } }
the URI condition here should match test_room@... as well, not it matches only chat1.
Ah, OK, I understand, so I hould have a URI for managing rooms (as "room-admin@domain.org") and URI's with the name created (as "chatX@domain.org").
Thanks, now I understand.