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
|
return stanza, jingle
|
||||||
|
|
||||||
def __send_error(self, stanza, error, jingle_error=None, text=None):
|
def __send_error(self, stanza, error, jingle_error=None, text=None):
|
||||||
err = xmpp.Error(stanza, error)
|
err = xmpp.Error(stanza, '%s %s' % (xmpp.NS_STANZAS, error))
|
||||||
err.setNamespace(xmpp.NS_STANZAS)
|
|
||||||
if jingle_error:
|
if jingle_error:
|
||||||
err.setTag(jingle_error, namespace=xmpp.NS_JINGLE_ERRORS)
|
err.setTag(jingle_error, namespace=xmpp.NS_JINGLE_ERRORS)
|
||||||
if text:
|
if text:
|
||||||
|
|
Loading…
Add table
Reference in a new issue