[OpenSER-Users] imc module, any help?
Daniel-Constantin Mierla
daniel at voice-system.ro
Tue Jul 17 12:49:08 CEST 2007
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 at ... 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 at domain.org":
> #create test_room
>
> and I get in Linphone:
> "[<sip:test_room at 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 at domain.org MEMBERS=0 OWNER=sip:810 at domain.org
>
>
> But if I send a message to "test_room at 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.
>
>
>
>
>
>
More information about the sr-users
mailing list