<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<font face="monospace">Hi Jonathan,<br>
<br>
Maybe the k8s layer (the ingress ??) sticks its tails in there -
could you check at opensips level if the TCP conn is still seen as
up ? Use the mi list_tcp_conns MI function <br>
<a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Interface-CoreMI-3-2#toc4">https://www.opensips.org/Documentation/Interface-CoreMI-3-2#toc4</a><br>
<br>
<br>
Best regard,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 23rd May - 3rd June 2022
<a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
<div class="moz-cite-prefix">On 4/13/22 6:08 PM, Jonathan Hunter
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AS8P195MB1287804C50403DC08F99EDFDBDEC9@AS8P195MB1287.EURP195.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}.MsoChpDefault
{mso-style-type:export-only;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Has anyone managed to get presence working
when using an active/active opensips setup with k8s ?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Everything works apart from presence, In
particular when a websocket user disconnects due to a client
crash.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I ideally would want to use
event_route[E_CORE_TCP_DISCONNECT] to then grab the disconnect
when it comes in via websockets/tcp, however I cant seem to
get it to trigger. Could this be due to the underlying hooks
OpenSIPS uses to interact with with OS with TCP or something
else?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As I would use the event route, to then
remove the registration from the location table, as otherwise
I have duplicate entries in both location and the presentity
list.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is this something anyone else has
encountered?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried using clustering with both
presence and pua and have same issues, whereby after an
unwanted disconnect subsequent NOTIFY messages contain more
than one id per entity;</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><presence
xmlns="urn:ietf:params:xml:ns:pidf"
entity=<a class="moz-txt-link-rfc2396E" href="sip:61067470a372a031a7495a1a@domain">"sip:61067470a372a031a7495a1a@domain"</a>></p>
<p class="MsoNormal"><tuple
xmlns="urn:ietf:params:xml:ns:pidf"
id="0x7ffe75896760"><status><basic>open</basic></status></tuple><tuple
xmlns="urn:ietf:params:xml:ns:pidf"
id="0x7ffd0716b390"><status><basic>open</basic></status></tuple></presence></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I need to stop this occurring ideally, any
help much appreciated.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jon</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">
Mail</a> for Windows</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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>