Author: tomk Date: 2008-07-14 01:10:11 +0200 (Mon, 14 Jul 2008) New Revision: 9924
Modified: branches/bosh_support/src/common/xmpp/dispatcher_nb.py Log: added hack for Openfire that doesn't add xmlns to child iqs of sent body stanzas
Modified: branches/bosh_support/src/common/xmpp/dispatcher_nb.py =================================================================== --- branches/bosh_support/src/common/xmpp/dispatcher_nb.py 2008-07-13 22:22:58 UTC (rev 9923) +++ branches/bosh_support/src/common/xmpp/dispatcher_nb.py 2008-07-13 23:10:11 UTC (rev 9924) @@ -380,6 +380,7 @@ if not res: return self._owner.remove_timeout() + print self._expected if self._expected[self._witid] is None: return if self.on_responses.has_key(self._witid): @@ -471,6 +472,7 @@ return XMPPDispatcher.ProcessNonBlocking(self, data)
def dispatch(self, stanza, session=None, direct=0): + if stanza.getName()=='body' and stanza.getNamespace()==NS_HTTP_BIND:
stanza_attrs = stanza.getAttrs() @@ -496,6 +498,8 @@ if children: for child in children: + if child.getNamespace() == NS_HTTP_BIND: + child.setNamespace(self._owner.defaultNamespace) XMPPDispatcher.dispatch(self, child, session, direct) else: XMPPDispatcher.dispatch(self, stanza, session, direct)