def __init__(self, config_file=None):
        ConfigFile.__init__(self, config_file)

        self.id = self._get('smpp-server', 'id', 'smpps_01')

        self.bind = self._get('smpp-server', 'bind', '0.0.0.0')
        self.port = self._getint('smpp-server', 'port', 2775)

        # Logging
        self.log_level = logging.getLevelName(self._get('smpp-server', 'log_level', 'INFO'))
        self.log_file = self._get(
            'smpp-server', 'log_file', '%s/var/log/jasmin/default-%s.log' % (ROOT_PATH, self.id))
        self.log_rotate = self._get('smpp-server', 'log_rotate', 'midnight')
        self.log_format = self._get(
            'smpp-server', 'log_format', '%(asctime)s %(levelname)-8s %(process)d %(message)s')
        self.log_date_format = self._get('smpp-server', 'log_date_format', '%Y-%m-%d %H:%M:%S')

        # Timeout for response to bind request
        self.sessionInitTimerSecs = self._getint('smpp-server', 'sessionInitTimerSecs', 30)

        # Enquire link interval
        self.enquireLinkTimerSecs = self._getint('smpp-server', 'enquireLinkTimerSecs', 30)

        # Maximum time lapse allowed between transactions, after which,
        # the connection is considered as inactive
        self.inactivityTimerSecs = self._getint('smpp-server', 'inactivityTimerSecs', 300)

        # Timeout for responses to any request PDU
        self.responseTimerSecs = self._getint('smpp-server', 'responseTimerSecs', 60)

        # Timeout for reading a single PDU, this is the maximum lapse of time between
        # receiving PDU's header and its complete read, if the PDU reading timed out,
        # the connection is considered as 'corrupt' and will reconnect
        self.pduReadTimerSecs = self._getint('smpp-server', 'pduReadTimerSecs', 10)

        # DLR
        # How much time a message is kept in redis waiting for receipt
        self.dlr_expiry = self._getint('smpp-server', 'dlr_expiry', 86400)
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/configs.py/SMPPServerConfig.__init__/original