def __init__(self, amipool, dbpool, sServerIP, sIP, mac): BaseEndpoint.__init__(self, 'Yealink', amipool, dbpool, sServerIP, sIP, mac) self._bridge = True # Time Zone, hour offset from GMT self._timeZone = '%g' % (BaseEndpoint.getTimezoneOffset() / 3600.0)
def __init__(self, amipool, dbpool, sServerIP, sIP, mac): BaseEndpoint.__init__(self, 'AudioCodes', amipool, dbpool, sServerIP, sIP, mac) # Calculate timezone, GMT offset in minutes tzoffset = BaseEndpoint.getTimezoneOffset() / 60 self._timeZone = '' if tzoffset < 0: self._timeZone = '-' self._timeZone = self._timeZone + ( '%02d:%02d' % (abs(tzoffset) / 60, abs(tzoffset) % 60)) self._language = 'SPANISH'
def __init__(self, amipool, dbpool, sServerIP, sIP, mac): BaseEndpoint.__init__(self, 'Linksys', amipool, dbpool, sServerIP, sIP, mac) # Convert Signed Decimal TimeZone Offset to Signed HH:MM offset formated for Cisco SPA Phones tzoffset = BaseEndpoint.getTimezoneOffset() / 60 self._timeZone = '' if tzoffset < 0: self._timeZone = 'GMT-' else: self._timeZone = 'GMT+' self._timeZone = self._timeZone + ('%02d:%02d' % (abs(tzoffset) / 60, abs(tzoffset) % 60)) self._daylightrule = '' self._daylightenable = ''