From af33becb5c399b213cfdd012d219709d9a03b5f8 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 3 Jan 2016 20:43:32 +0100 Subject: [PATCH] don't send error when receivinf a ringing jingle element --- src/common/jingle_session.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/jingle_session.py b/src/common/jingle_session.py index 7652e8868..31f3d4d9c 100644 --- a/src/common/jingle_session.py +++ b/src/common/jingle_session.py @@ -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',