<div dir="ltr"><div>Xuo,</div><div><br></div><div>How do you capture this traffic? WebSocket pings is not an ordinary "SIP-style OPTIONS" pings, It's packets described in RFC6455 - <a href="https://datatracker.ietf.org/doc/html/rfc6455#section-5.5.2">https://datatracker.ietf.org/doc/html/rfc6455#section-5.5.2</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 10 мар. 2022 г. в 16:57, Xuo Guoto <<a href="mailto:xuoguoto@protonmail.com">xuoguoto@protonmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">Hello list,</div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">I have kamailio <span>5.5.3 (x86_64/linux)</span> configured as an SBC in front of asterisk to front end webrtc clients. Browser clients running <span>JsSIP 3.7.0</span> connect to kamailio via webrtc and kamailio sends the traffic back to asterisk using SIP. rtpengine is configured to relay the RTP packets.</div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">I need to send websocket pings every 10 seconds to the browser clients.<br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">I have the following config in kamailio:</div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><span></span><span></span><span>modparam("websocket", "keepalive_mechanism", 1)</span><div><span>modparam("websocket", "keepalive_timeout", 10)</span></div><div><span>modparam("websocket", "keepalive_interval", 2)</span></div><div><span>modparam("websocket", "keepalive_processes", 2)</span></div><div><span>modparam("websocket", "verbose_list", 1)</span></div><span></span></div><br><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">If my understanding of the documentation is correct, I do not need to do any additional configuration. <br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">But looking at the websocket traffic, I do not see any ping packets in websocket. I am also using sipdump module to capture all packets sent and received by kamailio and the ping packets are not visible there either.</div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">What could be wrong here? Do I need to do any additional config? <br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">Thanks for every help!</div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)"><br></div><div style="font-family:arial;font-size:14px;color:rgb(34,34,34)">X.<br></div>__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Best regards,<div>Igor</div></div></div>