'Received Iq with rejected - this is a reject.
Delete the session.'

def _handle_event_rejected(self, iq):

    seqnr = iq['rejected']['seqnr']
    callback = self.sessions[seqnr]['callback']
    callback(from_jid=iq['from'], result='rejected', error_msg=iq['rejected']['error'])
    del self.sessions[seqnr]
