<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 class="" style="white-space:pre">        </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">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 class="" style="white-space:pre">        </span></font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">        </span>route(SIP_CHECK);<br></font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">
        </span># Handles and adjusts packets for NAT&#39;e clients<br></font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">        </span>force_rport();</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">        </span>if (nat_uac_test(&quot;23&quot;)) {</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </span>if (is_method(&quot;REGISTER&quot;)) {</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                        </span>fix_nated_register();</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                        </span>setbflag(NAT);</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </span>} else {</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                        </span>fix_nated_contact();</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                        </span>setflag(NAT);</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </span>}</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">        </span>}</font></div><div><span style="background-color:rgb(255,217,102)"><font face="monospace, monospace"><span class="" style="white-space:pre">        </span>setflag(NAT);<span class="" style="white-space:pre">        </span></font></span></div><br></div><div>and set SIP_PING_FLAG before save() function:<br><br><br><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </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 class="" style="white-space:pre">                </span>if (isflagset(NAT)) {</font></div><div><span style="background-color:rgb(255,217,102)"><font face="monospace, monospace"><span class="" style="white-space:pre">                        </span>setbflag(SIP_PING_FLAG);</font></span></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </span>}</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </span>if (!save(&quot;location&quot;))</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                        </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">1009@siptest.saevolgo.ca</a></font></div><div><font face="monospace, monospace">                Contact:: sip:1009@64.231.959.69:30514;rinstance=38d9f5f00287404f;transport=udp 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>