Skip to content
Snippets Groups Projects
Commit 69783055 authored by Thibg's avatar Thibg
Browse files

Set the error-condition's namespace instead of iq's. Fixes #5546

parent 4a8e3080
No related branches found
No related tags found
No related merge requests found
......@@ -546,8 +546,7 @@ class JingleSession(object):
return stanza, jingle
def __send_error(self, stanza, error, jingle_error=None, text=None):
err = xmpp.Error(stanza, error)
err.setNamespace(xmpp.NS_STANZAS)
err = xmpp.Error(stanza, '%s %s' % (xmpp.NS_STANZAS, error))
if jingle_error:
err.setTag(jingle_error, namespace=xmpp.NS_JINGLE_ERRORS)
if text:
......@@ -654,4 +653,4 @@ class JingleSession(object):
self.connection.dispatch('JINGLE_CONNECTED', (self.peerjid, self.sid,
media))
# vim: se ts=3:
\ No newline at end of file
# vim: se ts=3:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment