Set the error-condition's namespace instead of iq's. Fixes #5546
This commit is contained in:
parent
4a8e30800f
commit
6978305528
1 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||
# vim: se ts=3:
|
||||
|
|
Loading…
Add table
Reference in a new issue