def caps_query_done(self, result, vers):
        self.caps_received -= 1
        vname = CAPSTABLE[vers]
        if result == '1':
            setattr(self.rtpc, vname, True)
        else:
            setattr(self.rtpc, vname, False)
        if self.caps_received == 0:
            self.rtpc.caps_done = True
            self.rtpc = None
dataset/ETHPy150Open sippy/b2bua/sippy/Rtp_proxy_client.py/Rtpp_caps_checker.caps_query_done/original