<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Good you sorted out and thanks for following up with the solution so
    others that may need the same can find the guidelines in the mailing
    list archive.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 15/12/15 18:35, Alexandru Covalschi
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAD_iGr9GJGbCh0YW_Fe+Tme-Gb9qK_1xJES7qd1ZcqszvsBDSA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Ok I got it - endpoint must send MESSAGE to <a
              moz-do-not-send="true"
              href="mailto:sip%3Aconference-name@domain.name"><a class="moz-txt-link-freetext" href="sip:conference-name@domain.name">sip:conference-name@domain.name</a></a>,
            but initially it sends to conference-name.<br>
          </div>
          So as I understood - if (is_method("MESSAGE") &&
          !(starts_with("$fU", "chat"))) should make everything work
          correct.<br>
        </div>
        Sorry for emotions :)<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-12-15 19:00 GMT+02:00 Alexandru
          Covalschi <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:568691@gmail.com" target="_blank">568691@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>upd: Let me describe my use case. I need conference
                chats. Clients are <a moz-do-not-send="true"
                  href="mailto:1001-1009@domain.name" target="_blank">1001-1009@domain.name</a><br>
                Conference is <a moz-do-not-send="true"
                  href="mailto:3500@domain.name" target="_blank">3500@domain.name</a><br>
              </div>
              <div>Messages are sent from <a moz-do-not-send="true"
                  href="mailto:1001-1009@domain.name" target="_blank">1001-1009@domain.name</a>
                to <a moz-do-not-send="true"
                  href="mailto:3500@domain.name" target="_blank">3500@domain.name</a><br>
              </div>
              <div>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:<br>
                if (is_method("MESSAGE") && $fU != "chat-3500")<br>
                {<br>
                    if(imc_manager())<br>
                        sl_send_reply("200", "ok");<br>
                    else<br>
                        sl_send_reply("500", "command error");<br>
                    exit;<br>
                }<br>
              </div>
              <div>This allows me to receive system messages - but I
                can't get any messages from clients.<br>
              </div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">2015-12-15 18:43 GMT+02:00
                    Alexandru Covalschi <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:568691@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:568691@gmail.com">568691@gmail.com</a></a>></span>:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">
                        <div>Hello again<br>
                          First of all I wanted to ask if someone ever
                          implemented that <a moz-do-not-send="true"
                            href="http://kamailio.org/docs/modules/4.3.x/modules/imc.html"
                            target="_blank">http://kamailio.org/docs/modules/4.3.x/modules/imc.html</a>
                          with WebRTC<br>
                        </div>
                        Second question is - I don't understand the
                        logic. In description is said: <br clear="all">
                        <p> 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. <br>
                          <br>
                        </p>
                        <p>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?<br>
                        </p>
                        <p>Also - when I send message with body
                          "1111111" from user 1001 and imc_manager
                          catches it -  I receive 500 command error.
                          Why? :/ <br>
                        </p>
                        <p>All that is working on top of sipjs-demo. <br>
                        </p>
                        <span><font color="#888888">
                            <div>
                              <div>
                                <div>
                                  <div><br>
                                    -- <br>
                                    <div>
                                      <div dir="ltr">Alexandru Covalschi<br>
                                        ABRISS-Solutions
                                        <div>VoIP engineer and system
                                          administrator<br>
                                          phone: <a
                                            moz-do-not-send="true"
                                            href="tel:%2B37367398493"
                                            value="+37367398493"
                                            target="_blank">+37367398493</a><br>
                                          web: <a
                                            moz-do-not-send="true"
                                            href="http://abs-telecom.com/"
                                            target="_blank"><a class="moz-txt-link-freetext" href="http://abs-telecom.com/">http://abs-telecom.com/</a></a></div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </font></span></div>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <br>
                  -- <br>
                  <div>
                    <div dir="ltr">Alexandru Covalschi<br>
                      ABRISS-Solutions
                      <div>VoIP engineer and system administrator<br>
                        phone: <a moz-do-not-send="true"
                          href="tel:%2B37367398493" value="+37367398493"
                          target="_blank">+37367398493</a><br>
                        web: <a moz-do-not-send="true"
                          href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">Alexandru Covalschi<br>
            ABRISS-Solutions
            <div>VoIP engineer and system administrator<br>
              phone: +37367398493<br>
              web: <a moz-do-not-send="true"
                href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>