Пример #1
0
    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)
Пример #2
0
    def __init__(self, amipool, dbpool, sServerIP, sIP, mac):
        BaseEndpoint.__init__(self, 'Grandstream', amipool, dbpool, sServerIP,
                              sIP, mac)

        # Calculate timezone, 'auto' or GMT offset in minutes +720
        #self._timeZone = BaseEndpoint.getTimezoneOffset() / 60 + 720
        self._timeZone = 'auto'
        self._language = 'es'
Пример #3
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'
Пример #4
0
    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 = ''
Пример #5
0
 def setExtraParameters(self, param):
     if not BaseEndpoint.setExtraParameters(self, param): return False
     if 'timezone' in param: self._timeZone = param['timezone']
     if 'daylightrule' in param: self._daylightrule = param['daylightrule']
     if 'daylightenable' in param:
         self._daylightenable = param['daylightenable']
     return True
Пример #6
0
 def __init__(self, amipool, dbpool, sServerIP, sIP, mac):
     BaseEndpoint.__init__(self, 'Elastix', amipool, dbpool, sServerIP, sIP, mac)
     self._timeZone = 'auto'
     self._language = 'es'
Пример #7
0
 def __init__(self, amipool, dbpool, sServerIP, sIP, mac):
     BaseEndpoint.__init__(self, 'LG-ERICSSON', amipool, dbpool, sServerIP,
                           sIP, mac)
     self._timeZone = None
Пример #8
0
 def __init__(self, amipool, dbpool, sServerIP, sIP, mac):
     BaseEndpoint.__init__(self, 'Xorcom', amipool, dbpool, sServerIP, sIP,
                           mac)
Пример #9
0
 def setExtraParameters(self, param):
     if not BaseEndpoint.setExtraParameters(self, param): return False
     if 'bridge' in param: self._bridge = param['bridge']
     if 'timezone' in param: self._timeZone = param['timezone']
     return True
Пример #10
0
 def __init__(self, amipool, dbpool, sServerIP, sIP, mac):
     BaseEndpoint.__init__(self, 'Atcom', amipool, dbpool, sServerIP, sIP,
                           mac)
     self._bridge = False
     self._timeZone = 12
     self._firmware = 2  # Assume new firmware
Пример #11
0
 def __init__(self, amipool, dbpool, sServerIP, sIP, mac):
     BaseEndpoint.__init__(self, 'Escene', amipool, dbpool, sServerIP, sIP,
                           mac)
     self._bridge = False
     self._timeZone = 12
Пример #12
0
 def __init__(self, amipool, dbpool, sServerIP, sIP, mac):
     BaseEndpoint.__init__(self, 'VOPTech', amipool, dbpool, sServerIP, sIP,
                           mac)
     self._bridge = True
     self._timeZone = 12