<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Sammy,<br>
      <br>
      Please update your sources with the latest 2.2 (either from git
      branch 2.2, either nightly tarbal for 2.2 from
      download.opensips.org)<br>
      <br>
      Regards,<br>
      <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></pre>
    <div class="moz-cite-prefix">On 29.06.2016 18:04, SamyGo wrote:<br>
    </div>
    <blockquote
cite="mid:CAJUJwthUdHRkoCT6y3N6GzJ_2yjDNSuP+RxumkhoOEVRcf0n-Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Bogdan for looking into this.<br>
        <br>
        This is my version;
        <div><br>
        </div>
        <div>
          <div><font face="monospace, monospace">version: opensips 2.2.0
              (x86_64/linux)</font></div>
          <div><font face="monospace, monospace">flags: STATS: On,
              DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC,
              FAST_LOCK-ADAPTIVE_WAIT</font></div>
          <div><font face="monospace, monospace">ADAPTIVE_WAIT_LOOPS=1024,
              MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE
              1024, BUF_SIZE 65535</font></div>
          <div><font face="monospace, monospace">poll method support:
              poll, epoll_lt, epoll_et, sigio_rt, select.</font></div>
          <div><font face="monospace, monospace">git revision: 9512363</font></div>
          <div><font face="monospace, monospace">main.c compiled on
              15:54:46 Jun 22 2016 with gcc 4.8</font><br>
            <br>
            <font face="arial, helvetica, sans-serif">Best Regards,</font></div>
        </div>
        <div><font face="arial, helvetica, sans-serif">Sammy</font></div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jun 29, 2016 at 6:23 AM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> <tt>Hello Sammy,<br>
                <br>
                What OpenSIPS version you have (opensips -V) and where
                did you get it ? There is a very similar bug which was
                already fixed.<br>
                <br>
                Regards,<br>
              </tt>
              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div>On 28.06.2016 22:59, SamyGo wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi All,
                      <div><br>
                      </div>
                      <div>I've OpenSIPS 2.2 and doing some tests with
                        it I can't seem to find any OPTIONS triggering
                        for the registered users. </div>
                      <div><br>
                      </div>
                      <div>I've following settings for usrloc module and
                        nathelper</div>
                      <div><br>
                      </div>
                      <div>
                        <div><font face="monospace, monospace">loadmodule
                            "usrloc.so"</font></div>
                        <div><font face="monospace, monospace">modparam("usrloc",

                            "nat_bflag", "NAT")</font></div>
                        <div><font face="monospace, monospace">modparam("usrloc",

                            "db_mode",   2)</font></div>
                        <div><font face="monospace, monospace">modparam("usrloc",

                            "db_url",</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">        </span>"mysql://root:Q4FRX@localhost/opensips_2_2") <br>
                            <br>
                            <br>
                          </font>
                          <div><font face="monospace, monospace">loadmodule

                              "nathelper.so"</font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "natping_interval", 10)</font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "ping_nated_only", 1)</font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "sipping_bflag", "SIP_PING_FLAG")</font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "sipping_from", "<a moz-do-not-send="true"
href="mailto:sip%3Apinger@siptest.saevolgo.ca" target="_blank">sip:pinger@siptest.saevolgo.ca</a>") </font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "received_avp", "$avp(received)")</font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "natping_tcp", 1)</font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "ping_threshold", 10)</font></div>
                          <div><font face="monospace, monospace">modparam("nathelper",

                              "max_pings_lost", 5)</font></div>
                        </div>
                      </div>
                      <div><br>
                        I force set NAT flag for all SIP packets either
                        INVITE or REGISTER<br>
                        <br>
                        <div><font face="monospace, monospace">route{</font></div>
                        <div><font face="monospace, monospace"> <span style="white-space:pre-wrap">        </span></font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">        </span>route(SIP_CHECK);<br>
                          </font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">
        </span># Handles and adjusts packets for NAT'e clients<br>
                          </font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">        </span>force_rport();</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">        </span>if

                            (nat_uac_test("23")) {</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>if

                            (is_method("REGISTER")) {</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                        </span>fix_nated_register();</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                        </span>setbflag(NAT);</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>}
                            else {</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                        </span>fix_nated_contact();</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                        </span>setflag(NAT);</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>}</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">        </span>}</font></div>
                        <div><span
                            style="background-color:rgb(255,217,102)"><font
                              face="monospace, monospace"><span style="white-space:pre-wrap">        </span>setflag(NAT);<span style="white-space:pre-wrap">        </span></font></span></div>
                        <br>
                      </div>
                      <div>and set SIP_PING_FLAG before save() function:<br>
                        <br>
                        <br>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>if

                            ( proto==TCP || proto==TLS || 0 )
                            setflag(TCP_PERSISTENT);</font></div>
                        <div><font face="monospace, monospace"><br>
                          </font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>if

                            (isflagset(NAT)) {</font></div>
                        <div><span
                            style="background-color:rgb(255,217,102)"><font
                              face="monospace, monospace"><span style="white-space:pre-wrap">                        </span>setbflag(SIP_PING_FLAG);</font></span></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>}</font></div>
                        <div><font face="monospace, monospace"><br>
                          </font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>if

                            (!save("location"))</font></div>
                        <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                        </span>sl_reply_error();</font></div>
                      </div>
                      <div><br>
                        If I look at online users the flags are seen
                        applied to the extensions:<br>
                        <br>
                        <div><font face="monospace, monospace">root@test1:/etc/opensips#

                            opensipsctl ul show</font></div>
                        <div>
                          <div><font face="monospace, monospace">Domain::
                              location table=512 records=1</font></div>
                          <div><font face="monospace, monospace">       
                              AOR:: <a moz-do-not-send="true"
                                href="mailto:1009@siptest.saevolgo.ca"
                                target="_blank">1009@siptest.saevolgo.ca</a></font></div>
                          <div><font face="monospace, monospace">       
                                      Contact:: <a
                                moz-do-not-send="true"
href="mailto:sip:1009@64.231.959.69:30514;rinstance=38d9f5f00287404f;transport=udp"
                                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:sip:1009@64.231.959.69:30514;rinstance=38d9f5f00287404f;transport=udp">sip:1009@64.231.959.69:30514;rinstance=38d9f5f00287404f;transport=udp</a></a>
                              Q=</font></div>
                          <div><font face="monospace, monospace">       
                                              Expires:: 3093</font></div>
                          <div><font face="monospace, monospace">       
                                              Callid::
                              1955a010ad311f31OGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg.</font></div>
                          <div><font face="monospace, monospace">       
                                              Cseq:: 2</font></div>
                          <div><font face="monospace, monospace">       
                                              User-agent:: eyeBeam
                              release 1003s stamp 31159</font></div>
                          <div><font face="monospace, monospace">       
                                              State:: CS_SYNC</font></div>
                          <div><font face="monospace, monospace">       
                                              Flags:: 0</font></div>
                          <div><font face="monospace, monospace">       
                                              <span
                                style="background-color:rgb(255,217,102)">Cflags::

                                SIP_PING_FLAG</span></font></div>
                          <div><font face="monospace, monospace">       
                                              Socket:: udp:X.X.X.X:5060</font></div>
                          <div><font face="monospace, monospace">       
                                              Methods:: 5951</font></div>
                        </div>
                        <div><br>
                        </div>
                        <br>
                        <font face="arial, helvetica, sans-serif">I
                          waited for like 15 minutes but no OPTIONS
                          triggered from opensips !<br>
                          <br>
                          Any guidance/help will be appreciated.</font></div>
                      <div><font face="arial, helvetica, sans-serif"><br>
                        </font></div>
                      <div><font face="arial, helvetica, sans-serif"><br>
                        </font></div>
                      <div><font face="arial, helvetica, sans-serif">Regards.<br>
                          Sammy<br>
                        </font><br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>