Re: Inconsistent subscription state after an hardware migration
Pedro Melo <[email protected]>
| Newsgroups | gmane.network.jabber.admin |
|---|---|
| Message-ID | <[email protected]> |
On Sep 4, 2008, at 11:06 AM, Lionel Dricot wrote: > Hello, > > I migrated my server a few weeks ago and I discovered that some of > my users remain offline for their respective contact. > > After investigation, it seems that the cause is quite simple : > > On my server, the contacts of my users have "to" has a status > subscription. But contacts have, on their respective server, the > status "both". The reason of "why" is quite simple : I migrated > contacts the Jabber way (I did a script that take contacts from an > account an recreate them on the other). Unfortunatly, the server > adress didn't change and external servers are not aware of the > migration. > > According to the protocol ( http://www.xmpp.org/rfcs/ > rfc3921.html#int ) it means that external server believe that they > are subscribed to the presence of my users but that my own server > doesn't send this presence. > > My question is : how can I change the "to" into a "both" for a given > set of contacts of a given set of user ? (fortunatly, it concerns > only a few users). There really is no automatic recover from roster out-of-sync. One thing that was suggested some time ago was to send the current subscription state (one of the nine combinations defined in section 9.1 of rfc3921) with your <presence type="probe">. This would allow both servers to check if their "notion" of what the real status of the subscription should be, and recover from it (not totally automatic in some cases). If the 'to' is local to you, and the other side has a 'both', then the I guess you can try fake some <presence> stanzas to clear the mess, as a last resort, given that you control the server. Best regards, -- Pedro Melo Blog: http://www.simplicidade.org/notes/ XMPP ID: [email protected] Use XMPP! _______________________________________________ JAdmin mailing list FAQ: http://www.jabber.org/discussion-lists/jadmin-faq Forum: http://www.jabberforum.org/forumdisplay.php?f=19 Info: http://mail.jabber.org/mailman/listinfo/jadmin Unsubscribe: [email protected] _______________________________________________