def __init__(self, global_config, uopts):
        self.uopts = uopts.getCopy()
        self._shutdown = False
        self.__data_callback = data_callback
        self._wi_available = threading.Condition()
        self._wi = []
        self.lservers = {}
        if type(global_config) == dict:
            _id = global_config.get('xmpp_b2bua_id', 5061)
        else:
            _id = global_config.getdefault('xmpp_b2bua_id', 5061)
        for i in range(0, MAX_WORKERS):
            Worker(self, _id)
dataset/ETHPy150Open sippy/b2bua/sippy/XMPP_server.py/XMPP_server.__init__/original