Exemple #1
0
 def __init__(self, deviceName, ipAddress):
     '''
     Constructor
     '''
     SCCPMessage.__init__(self, SCCPMessageType.RegisterMessage)
     self.deviceName = deviceName
     self.ipAddress = IpAddress(ipAddress)
     self.stationUserId = self.STATION_USERID
     self.stationInstance = self.STATION_INSTANCE
     self.deviceType = self.TelecasterBus
     self.maxStreams = self.MAXSTREAMS
 def testPack(self):
     address = IpAddress("192.168.1.12")
     self.assertEquals("\xC0\xA8\x01\x0C",address.pack())