Skip to content
Snippets Groups Projects
Commit af9d304c authored by zimio's avatar zimio
Browse files

add initiator to every jingle stanza

parent d5ffbf88
No related branches found
No related tags found
No related merge requests found
......@@ -630,10 +630,9 @@ class JingleSession(object):
stanza = xmpp.Iq(typ='set', to=xmpp.JID(self.peerjid),
frm=self.ourjid)
attrs = {'action': action,
'sid': self.sid}
if action == 'session-initiate' or action == 'session-accept' or \
action == 'transport-replace' or action == 'transport-info':
attrs['initiator'] = self.initiator
'sid': self.sid,
'initiator' : self.initiator}
jingle = stanza.addChild('jingle', attrs=attrs, namespace=xmpp.NS_JINGLE)
if reason is not None:
jingle.addChild(node=reason)
......
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