<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Abdul,<br>
      <br>
      Not sure if this is applicable for us. According to the script
      sample, the fr_timer (in seconds) is 10....Is this value too low
      for a server to properly reply back ??<br>
      <br>
      I guess that bug is Kamailio specific. We are on the safe side ;)<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
    <div class="moz-cite-prefix">On 04/13/2018 12:42 AM, Abdul Basit
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGQG5MbsoJt67iF452v+KJsb-nS6=arWTzeGHa-mdn5Rfc8eFg@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi Opensips team,<br>
                <br>
              </div>
              I faced instant message timeout issues with MSILO module
              while setting SIP IM server using kamailio.<br>
            </div>
            It turned out that fr_timer values was too low to wait for
            MESSAGE delivery to the destination (online/offline both
            cases) that server was replying with 408.<br>
          </div>
          Which result in message sending failed on sending side where
          as IM was reaching to the destination.<br>
          <br>
        </div>
        The same issue is true for <a
href="http://www.opensips.org/html/docs/modules/2.3.x/msilo.html#idp5682352"
          moz-do-not-send="true">msilo sample configuration</a> for
        opensips. <br>
        Kindly update it at your end as well. This will save lot of time
        for the ones who want to use opensips as IM server.<br>
        <div>
          <div>
            <div><br clear="all">
              <div>
                <div>
                  <div>
                    <div class="gmail_signature"
                      data-smartmail="gmail_signature">
                      <div><font size="2"><span
                            style="font-family:verdana,sans-serif"><span
                              style="color:rgb(39,78,19)">--<br>
                              regards,</span></span></font></div>
                      <font size="2"><span
                          style="font-family:verdana,sans-serif"><span
                            style="color:rgb(39,78,19)"><br>
                            abdul basit | p: +92 32 1416 4196 | o: +92
                            30 0841 1445</span></span></font></div>
                  </div>
                  <br>
                  <div class="gmail_quote">---------- Forwarded message
                    ----------<br>
                    From: <b class="gmail_sendername">Abdul Basit</b> <span
                      dir="ltr"><<a
                        href="mailto:basit.engg@gmail.com"
                        moz-do-not-send="true">basit.engg@gmail.com</a>></span><br>
                    Date: 13 April 2018 at 02:28<br>
                    Subject: Re: [SR-Users] MSILO: SIP stored offline
                    MESSAGE repetitive delivery<br>
                    To: Henning Westerholt <<a
                      href="mailto:hw@kamailio.org"
                      moz-do-not-send="true">hw@kamailio.org</a>><br>
                    <br>
                    <br>
                    <div dir="ltr">
                      <div>
                        <div>Thanks Henning.<br>
                          <br>
                        </div>
                        Good move. You removed the timers so that they
                        use their default values :)<br>
                        <br>
                        Same need to be done in sample msilo script<br>
                        <a
href="https://kamailio.org/docs/modules/5.1.x/modules/msilo.html#idp45433660"
                          target="_blank" moz-do-not-send="true">https://kamailio.org/docs/<wbr>modules/5.1.x/modules/msilo.<wbr>html#idp45433660</a><br>
                        <br>
                      </div>
                      Who will be doing that?<br>
                      <div><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><span class=""><br
                          clear="all">
                        <div>
                          <div
                            class="m_2675964066065543634gmail_signature"
                            data-smartmail="gmail_signature">
                            <div><font size="2"><span
                                  style="font-family:verdana,sans-serif"><span
                                    style="color:rgb(39,78,19)">--<br>
                                    regards,</span></span></font></div>
                            <font size="2"><span
                                style="font-family:verdana,sans-serif"><span
                                  style="color:rgb(39,78,19)"><br>
                                  abdul basit | p: +92 32 1416 4196 | o:
                                  +92 30 0841 1445</span></span></font></div>
                        </div>
                        <br>
                      </span>
                      <div>
                        <div class="h5">
                          <div class="gmail_quote">On 13 April 2018 at
                            00:37, Henning Westerholt <span dir="ltr"><<a
                                href="mailto:hw@kamailio.org"
                                target="_blank" moz-do-not-send="true">hw@kamailio.org</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex"><span>On
                                Thursday, 12 April 2018 10:15:19 CEST
                                Abdul Basit wrote:<br>
                                > My issue for IM handling has been
                                resolved.<br>
                                ><br>
                                > @MS helped to look into the matter.
                                From to the example<br>
                              </span>> [..]<br>
                              <span>><br>
                                > I replaced it as below<br>
                                ><br>
                                > # -- tm params --<br>
                                ><br>
                                > modparam("tm", "fr_timer", 10000 )<br>
                                > modparam("tm", "fr_inv_timer", 15 )<br>
                                > modparam("tm", "wt_timer", 10 )<br>
                                ><br>
                                ><br>
                                > Lower fr_timer was initiating 408
                                without waiting for 200 OK from<br>
                                > destination because 10ms is too
                                low. This was confusing msilo module and<br>
                                > the sender device that MESSAGE sent
                                was failed.<br>
                                > Increasing the fr_timer value
                                resolved the issue.<br>
                                > This also resolved a ripple effect.
                                i.e, kamailio delivery of offline<br>
                                > messages from DB store to the
                                destination party.<br>
                                > Since kamailio was get message
                                delivery error, it was<br>
                                > executing failure_route[1] that was
                                storing the message again in DB store<br>
                                > as offline message and so on.<br>
                                ><br>
                                > lower fr_timer values are also
                                exits in 3.x, 4.x, 5x and dev branches<br>
                                > documentation.<br>
                              </span>> [..]<br>
                              <br>
                              Hello Abdul,<br>
                              <br>
                              great that you found the issue. I have
                              fixed this issue in git master and also<br>
                              5.1 and 5.0 branch.<br>
                              <br>
                              Best regards,<br>
                              <br>
                              Henning<br>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>