<div dir="ltr">The Kamailio WebSocket stack will only ping on idle connections.  If nathelper is sending SIP level pings on a shorter interval than the WebSocket stack is the connection won't be considered idle.  The load-balancer doesn't understand the TCP traffic so it won't care as long as there is traffic.<div>
<br></div><div>However, it would seem silly to me to use nathelper pings over the WebSocket transport (unless you already have them enabled for another transport) as it is more efficient just to let the WebSocket layer take care of it.  After all, the nathelper pings from Kamailio are something of work-around that pre-dates RFC 5626.  Under outbound it's quite clear that if SIP-level keep-alives are needed for a particular transport the UA should do it, not the server.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Peter</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 September 2013 14:55, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Peter Dunkley writes:<br>
<br>
> A good example is that if you are using Amazon Elastic Load-Balancer to<br>
> distribute WebSocket connections, idle connections will be timed-out (by<br>
> the Load-Balancer) after 60 seconds - so make sure the server sends<br>
> WebSocket pings more frequently than that.<br>
<br>
</div>peter,<br>
<br>
websocket readme has this:<br>
<br>
  4.1. keepalive_mechanism (integer)<br>
<br>
  The keep-alive mechanism to use for WebSocket connections.<br>
<br>
  Note<br>
<br>
  If nathelper is only being used for WebSocket connections then nathelper<br>
  NAT pinging is not required. If nathelper is used for WebSocket<br>
  connections and TCP/TLS aliasing/NAT-traversal then WebSocket<br>
  keep-alives are not required.<br>
<br>
based on what you write now, is the above readme text still valid, i.e.,<br>
are nat pings enough to prevent amazon load balancer from timing out<br>
websocket connections or are native websocket pings needed instead?<br>
<div class="HOEnZb"><div class="h5"><br>
-- juha<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="courier new, monospace">Peter Dunkley</font></div><div><font face="courier new, monospace">Technical Director</font></div>
<div><font face="courier new, monospace">Crocodile RCS Ltd</font></div></div>
</div>