<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 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 28.06.2016 22:59, SamyGo wrote:<br>
</div>
<blockquote
cite="mid:CAJUJwtiAW69Zdns0gwdCQKHB_sw0rVrR87wchQOGiq-yGoKvNg@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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
moz-do-not-send="true"
href="mailto:1009@siptest.saevolgo.ca"><a class="moz-txt-link-abbreviated" href="mailto:1009@siptest.saevolgo.ca">1009@siptest.saevolgo.ca</a></a></font></div>
<div><font face="monospace, monospace">
Contact::
<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>
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 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>