<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 13/03/15 10:54, mayamatakeshi wrote:<br>
    </div>
    <blockquote
cite="mid:CABaNFCY-ARX+DxhiaVm8nXFtONj_vtkKfG9eSnjCG0k_eVt_Vg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">Hello,</span></div>
        <div style="text-align:justify"><font color="#000000"
            face="Helvetica, Arial"><span style="font-size:12px">maybe
              this phrase in the msilo doc is misleading:</span></font></div>
        <div style="text-align:justify"><font color="#000000"
            face="Helvetica, Arial"><span style="font-size:12px"><br>
            </span></font></div>
        <span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><i>Every
            time when a user registers with Kamailio, the module is
            looking in database for offline messages intended for that
            user. All of them will be sent to contact address provided
            in REGISTER request.</i></span><br>
        <div><span style="text-align:justify"><font color="#000000"
              face="Helvetica, Arial"><span style="font-size:12px"><a
                  moz-do-not-send="true"
                  href="http://kamailio.org/docs/modules/4.2.x/modules/msilo.html">http://kamailio.org/docs/modules/4.2.x/modules/msilo.html</a></span></font><br>
          </span></div>
        <div><span style="text-align:justify"><font color="#000000"
              face="Helvetica, Arial"><span style="font-size:12px"><br>
              </span></font></span></div>
        <div style="text-align:justify"><font color="#000000"
            face="Helvetica, Arial"><span style="font-size:12px">The
              above seems to imply that msilo would send the call
              directly to the contact address. But this doesn't seem to
              be the case based on what is mentioned in several threads
              in the mailing list and in what I saw in the msilo.c code.</span></font></div>
        <div style="text-align:justify"><font color="#000000"
            face="Helvetica, Arial"><span style="font-size:12px">If so,
              is there a reason to be a such? Would it be a problem to
              allow msilo m_dump to get the values of contact, received
              and path and use them when calling t_request?</span></font></div>
      </div>
    </blockquote>
    <br>
    <font face="Helvetica, Arial">IIRC, the MESSAGE requests are sent to
      the From address that sent the message. That's typically the AoR,
      meaning that the request is sent to the server of that user which
      should do lookup location to resolve the destination.<br>
      <br>
      There is an option to send some notification back to origin when
      the destination is offline, controlled by:<br>
      <br>
      -
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/msilo.html#msilo.p.use_contact">http://kamailio.org/docs/modules/stable/modules/msilo.html#msilo.p.use_contact</a><br>
      <br>
      But that should not be related to relaying the instant messages
      when the user becomes online.<br>
    </font><br>
    <font face="Helvetica, Arial">If the destination user is on same
      kamailio, be sure you don't authenticate requests coming from the
      same box (ie, skip authentication if src_ip==myself).<br>
      <br>
      Cheers,<br>
      Daniel<br>
    </font>
    <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>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>