'Received Iq with accepted - request was accepted'

def _handle_event_accepted(self, iq):

    seqnr = iq['accepted']['seqnr']
    result = 'accepted'
    if (iq['accepted']['queued'] == 'true'):
        result = 'queued'
    callback = self.sessions[seqnr]['callback']
    callback(from_jid=iq['from'], result=result)
