<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 href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</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 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&#39;ve OpenSIPS 2.2 and doing some tests with it I can&#39;t seem
          to find any OPTIONS triggering for the registered users. </div>
        <div><br>
        </div>
        <div>I&#39;ve following settings for usrloc module and nathelper</div>
        <div><br>
        </div>
        <div>
          <div><font face="monospace, monospace">loadmodule &quot;usrloc.so&quot;</font></div>
          <div><font face="monospace, monospace">modparam(&quot;usrloc&quot;,
              &quot;nat_bflag&quot;, &quot;NAT&quot;)</font></div>
          <div><font face="monospace, monospace">modparam(&quot;usrloc&quot;,
              &quot;db_mode&quot;,   2)</font></div>
          <div><font face="monospace, monospace">modparam(&quot;usrloc&quot;,
              &quot;db_url&quot;,</font></div>
          <div><font face="monospace, monospace"><span style="white-space:pre-wrap">        </span>&quot;mysql://root:Q4FRX@localhost/opensips_2_2&quot;) <br>
              <br>
              <br>
            </font>
            <div><font face="monospace, monospace">loadmodule
                &quot;nathelper.so&quot;</font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;natping_interval&quot;, 10)</font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;ping_nated_only&quot;, 1)</font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;sipping_bflag&quot;, &quot;SIP_PING_FLAG&quot;)</font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;sipping_from&quot;, &quot;<a href="mailto:sip%3Apinger@siptest.saevolgo.ca" target="_blank">sip:pinger@siptest.saevolgo.ca</a>&quot;) </font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;received_avp&quot;, &quot;$avp(received)&quot;)</font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;natping_tcp&quot;, 1)</font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;ping_threshold&quot;, 10)</font></div>
            <div><font face="monospace, monospace">modparam(&quot;nathelper&quot;,
                &quot;max_pings_lost&quot;, 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&#39;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(&quot;23&quot;)) {</font></div>
          <div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>if
              (is_method(&quot;REGISTER&quot;)) {</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(&quot;location&quot;))</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 href="mailto:1009@siptest.saevolgo.ca" target="_blank"></a><a href="mailto:1009@siptest.saevolgo.ca" target="_blank">1009@siptest.saevolgo.ca</a></font></div>
            <div><font face="monospace, monospace">               
                Contact::
                <a href="mailto:sip:1009@64.231.959.69:30514;rinstance=38d9f5f00287404f;transport=udp" target="_blank">sip:1009@64.231.959.69:30514;rinstance=38d9f5f00287404f;transport=udp</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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>