Sorry for emotions :)Ok I got it - endpoint must send MESSAGE to sip:conference-name@domain.name, but initially it sends to conference-name.So as I understood - if (is_method("MESSAGE") && !(starts_with("$fU", "chat"))) should make everything work correct.
2015-12-15 19:00 GMT+02:00 Alexandru Covalschi <568691@gmail.com>:
upd: Let me describe my use case. I need conference chats. Clients are 1001-1009@domain.name
Conference is 3500@domain.name
Every user joins conference room chat-3500. Join is successful - but nothing more. Messages are not relayed anywhere and I don't want to relay them - I just need to understand how this module works. My current configuration is:
if (is_method("MESSAGE") && $fU != "chat-3500")
{
if(imc_manager())
sl_send_reply("200", "ok");
else
sl_send_reply("500", "command error");
exit;
}
This allows me to receive system messages - but I can't get any messages from clients.
2015-12-15 18:43 GMT+02:00 Alexandru Covalschi <568691@gmail.com>:
Hello againSecond question is - I don't understand the logic. In description is said:
First of all I wanted to ask if someone ever implemented that http://kamailio.org/docs/modules/4.3.x/modules/imc.html with WebRTC
Handles Message method.It detects if the body of the message is a conference command.If so it executes it, otherwise it sends the message to all the members in the room.
But why in example (well however it has broken syntax) to IMC manager are sent only messages from chat-rooms? How message from client can possibly reach imc-manager then?
Also - when I send message with body "1111111" from user 1001 and imc_manager catches it - I receive 500 command error. Why? :/
All that is working on top of sipjs-demo.
--
Alexandru Covalschi
ABRISS-Solutions
--
Alexandru Covalschi
ABRISS-Solutions
--
Alexandru Covalschi
ABRISS-Solutions
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com http://miconda.eu