Project

General

Profile

Tigase broadcast user presence three times

Balakumar M
Added almost 4 years ago

May i know which plugin broadcast the user presence? We receive duplicate presence notification at the client.

--sm-plugins = +urn:xmpp:sm:3,+message-archive-xep-0136,+jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+roster-presence,+jabber:iq:privacy,+jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,-basic-filter,-domain-filter,-pep,-zlib,+com.1Chat,-jabber:iq:last


Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Mainly presence plugin is responsible for broadcasting the presence. I would recommend removing all default plugins from --sm-plugins configuration and only leaving there configurations that disable defaults or enable your own plugins, i.e. @--sm-plugins=-basic-filter,-domain-filter,-pep,-zlib,+com.ncs.onechat.OneChat,-jabber:iq:last@. Please also bare in mind that plugins process supported packets concurrently thus if there are a couple of plugins responsible for handling same packet type that produce the result this will result in packet duplication.

Added by Balakumar M almost 4 years ago

Thanks for your reply. I am getting same behaviour with all plugin removed, 3 presence notification. When I add -presence and leave +roster-presence, notification reduced from 3 to 2. If I remove or minus roster-presence, no presence notification is received.

Please advice.

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

+roster-presence is old plugin which was deprecated, now there are separate plugins for presence and roster which are loaded automatically - best option would be to have minimal --sm-plugins= configuration.

    (1-3/3)