fabiang / xmpp

Library for XMPP protocol connections (Jabber) for PHP
Other
179 stars 83 forks source link

How can I subscribe to other users? #70

Open kagulik opened 6 years ago

kagulik commented 6 years ago

I have 2 jabber accounts - mine and bot. I am subscribed to bot, but he doesn't subscribe to me, so I receive messages from bot, but can't see it's status (online/offline/connecting and so on).

Bot gets presence from me <presence from='my_jabber' type='subscribe'/>, but doesn't respond to it.

After sending re-authorization request to bot in pidgin debug window I get this <iq id='lx1620505' type='set'><query ver='34' xmlns='jabber:iq:roster'><item jid='jabber_bot' ask='subscribe' subscription='none'><group>Buddies</group></item></query></iq>

Is there any way to respond to the mine subscription?