<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 13/03/15 12:55, mayamatakeshi wrote:<br>
    </div>
    <blockquote
cite="mid:CABaNFCbt86_UY9fU54QJ9AWGTTpWqU2mjbe-nm0NL3tE5L3FAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Fri, Mar 13, 2015 at 8:25 PM,
            Daniel-Constantin Mierla <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:miconda@gmail.com"
                target="_blank">miconda@gmail.com</a>></span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Hello,
                <div>
                  <div class="h5"><br>
                    <br>
                    <br>
                    <div>On 13/03/15 10:54, mayamatakeshi wrote:<br>
                    </div>
                    <blockquote 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"
                                  target="_blank">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>
                  </div>
                </div>
                <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 moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules/msilo.html#msilo.p.use_contact"
                    target="_blank">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>
                </font><span class="HOEnZb"></span></div>
            </blockquote>
            <div>Daniel, </div>
            <div>thanks for the explanation. I am doing as you
              described.</div>
            <div>Everything is running fine. </div>
            <div>I was just intrigued about having to loop the request
              if my own server is the registrar.<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    The loop is local so there is no much impact. When msilo was
    developed (iirc, like 2003) there was not much inter-module API and
    this was the solution to go.<br>
    <br>
    Now probably msilo can be bound to usrloc and use the internal
    exported API, but it is more like some effort for no real big
    benefits. The existing behaviour still needs to be kept because
    msilo can be on a different instance that location server. Of course
    a patch will be accepted, but at least for me there are other higher
    priority features to work on for the moment.<br>
    <br>
    A benefit of current behavior is more control of what to do with
    dumped messages in request_route when receiving it via local loop.<br>
    <br>
    Cheers,<br>
    Daniel<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>
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>