Commit af33becb authored by Yann Leboulanger's avatar Yann Leboulanger

don't send error when receivinf a ringing jingle element

parent 2885ff41
......@@ -419,10 +419,13 @@ class JingleSession(object):
raise nbxmpp.NodeProcessed
def __on_session_info(self, stanza, jingle, error, action):
# TODO: ringing, active, (un)hold, (un)mute
# TODO: active, (un)hold, (un)mute
payload = jingle.getPayload()
if payload[0].getName() == 'ringing':
# ignore ringing
raise nbxmpp.NodeProcessed
if self.state != JingleStates.active:
raise OutOfOrder
payload = jingle.getPayload()
for p in payload:
if p.getName() == 'checksum':
hash_ = p.getTag('file').getTag(name='hash',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment