migutica / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

ConferenceManager.m_stream_OnAfterPresenceOut causes problems with OpenFire #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This method gets called when I sign in to the OpenFire service, which 
sends the following stanza:

<presence to="global_taste@conference.n-deutschd2.tfn.com">      
<status>online</status><priority>0</priority>
</presence>

OpenFire returns with:

<presence to="david.deutsch@n-deutschd2.tfn.com/Jabber.Net" 
from="global_taste@conference.n-deutschd2.tfn.com" type="error">
  <status>online</status><priority>0</priority>
  <error code="400" type="modify">
    <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
</presence>

I fixed this in my case by having 
ConferenceManager.m_stream_OnAfterPresenceOut instead re-join the room 
using a RoomPresence object. Note that I do this even though m_state == 
STATE.running.

Original issue reported on code.google.com by david%re...@gtempaccount.com on 24 Nov 2009 at 11:30