<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 class="" style="white-space:pre">        </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 href="mailto:sip%3Apinger@siptest.saevolgo.ca">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 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'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("23")) {</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">                </span>if (is_method("REGISTER")) {</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("location"))</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>