<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Tito,<br>
<br>
A ping cannot be empty - if it is empty, it is not a ping :) .
Maybe it is the UDP ping (the 4 bytes of zero value) ?? If so, it
means you did not set the NAT_SIP_PINGS branch flag when the
contact was registered (before the save(location)).<br>
<br>
IF you do opensipsctl ul show, you should see the saved branch
flags.<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>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 04/13/2018 01:28 AM, Tito Cumpen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANZPVB424M=0LiEmVRLusptPEOHLoDazxQbrWCdTJW3GQcZ5zw@mail.gmail.com">
<div dir="ltr">Hello,
<div><br>
</div>
<div><br>
</div>
<div>I am using opensips 2.3 git rev. 3a66b9c and I am noticing
that sip options pings to wss clients are sent with no body at
all. I am using SIP.js/0.7. and see that the options sent when
using :</div>
<div><br>
</div>
<div><br>
</div>
<div> modparam("nathelper", "natping_interval", 10)</div>
<div>modparam("nathelper", "natping_tcp", 1)</div>
<div>modparam("nathelper", "sipping_from", "<a
href="mailto:sip%3Apinger@mydomain.net"
moz-do-not-send="true">sip:pinger@mydomain.net</a>")</div>
<div>modparam("nathelper", "remove_on_timeout_bflag",
"RM_ONTO_FLAG")<br>
</div>
<div>modparam("nathelper", "sipping_bflag", "NAT_SIP_PINGS")</div>
<div><br>
</div>
<div>are empty and therefore the these clients cannot be
monitored because sipjs dismisses the empty messages</div>
<div>
<div>Thu Apr 12 2018 18:27:14 GMT-0400 (EDT) | sip.parser | no
CRLF found, not a SIP message, discarded</div>
<div>sip-0.7.7.min.js:36 Thu Apr 12 2018 18:27:23 GMT-0400
(EDT) | sip.transport | received WebSocket text message:</div>
</div>
<div><br>
</div>
<div><br>
Thanks,<br>
Tito</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>