def __init__(self, name, global_config, *args, **kwargs): self.call_id_map = [] self.call_id_map_old = [] self.name = name self.global_config = global_config Rtp_proxy_client.__init__(self, global_config, *args, **kwargs) self.timer = Timeout(self.call_id_map_aging, 600, -1)
def __init__(self, name, global_config, address, cmd_out_address): self.call_id_map = [] self.call_id_map_old = [] self.name = name self.global_config = global_config self.asess_filtered = rc_filter(0.9) self.cmd_out_address = cmd_out_address if cmd_out_address != None: bind_address = (cmd_out_address, 0) else: bind_address = None Rtp_proxy_client.__init__(self, global_config, address, bind_address = bind_address) self.timer = Timeout(self.call_id_map_aging, 600, -1)
def __init__(self, name, global_config, address, cmd_out_address, **kwargs): self.call_id_map = [] self.call_id_map_old = [] self.name = name self.global_config = global_config self.asess_filtered = rc_filter(0.5) self.cmd_out_address = cmd_out_address self.stats_cache = {} if cmd_out_address != None: bind_address = (cmd_out_address, 0) else: bind_address = None Rtp_proxy_client.__init__(self, global_config, address, bind_address=bind_address, **kwargs) self.timer = TimeoutInact(self.call_id_map_aging, 600, -1) self.timer.spread_runs(0.1) self.timer.go()
def __init__(self, name, *args, **kwargs): self.call_id_map = [] self.call_id_map_old = [] self.name = name Rtp_proxy_client.__init__(self, *args, **kwargs) self.timer = Timeout(self.call_id_map_aging, 600, -1)