[OpenSIPS-Users] Clustering Presence opensips 3.2/3.3 in K8s environment

Jonathan Hunter hunterj91 at hotmail.com
Wed Apr 13 15:08:59 UTC 2022


Hi All,

Has anyone managed to get presence working when using an active/active opensips setup with k8s ?

Everything works apart from presence, In particular when a websocket user disconnects due to a client crash.

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?

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.

Is this something anyone else has encountered?

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;

<presence xmlns="urn:ietf:params:xml:ns:pidf" entity="sip:61067470a372a031a7495a1a at domain">
<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>

I need to stop this occurring ideally, any help much appreciated.

Many thanks

Jon



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220413/2e75595a/attachment.html>


More information about the Users mailing list