def readConferenceCreateRequest(s): """ @summary: Read a response from client GCC create request @param s: Stream @param client settings (Settings) """ per.readChoice(s) per.readObjectIdentifier(s, t124_02_98_oid) per.readLength(s) per.readChoice(s) per.readSelection(s) per.readNumericString(s, 1) per.readPadding(s, 1) if per.readNumberOfSet(s) != 1: raise InvalidExpectedDataException( "Invalid number of set in readConferenceCreateRequest") if per.readChoice(s) != 0xc0: raise InvalidExpectedDataException( "Invalid choice in readConferenceCreateRequest") per.readOctetStream(s, h221_cs_key, 4) length = per.readLength(s) clientSettings = Settings(readLen=CallableValue(length)) s.readType(clientSettings) return clientSettings
def readConferenceCreateRequest(s): """ Read a response from client GCC create request @param s: Stream @param client settings (Settings) """ per.readChoice(s) per.readObjectIdentifier(s, t124_02_98_oid) per.readLength(s) per.readChoice(s) per.readSelection(s) per.readNumericString(s, 1) per.readPadding(s, 1) if per.readNumberOfSet(s) != 1: raise InvalidExpectedDataException("Invalid number of set in readConferenceCreateRequest") if per.readChoice(s) != 0xc0: raise InvalidExpectedDataException("Invalid choice in readConferenceCreateRequest") per.readOctetStream(s, h221_cs_key, 4) length = per.readLength(s) clientSettings = Settings(readLen = UInt32Le(length)) s.readType(clientSettings) return clientSettings
def readConferenceCreateResponse(s): ''' read response from server and return server settings read from this response @param s: Stream @return: ServerSettings ''' per.readChoice(s) per.readObjectIdentifier(s, t124_02_98_oid) per.readLength(s) per.readChoice(s) per.readInteger16(s, 1001) per.readInteger(s) per.readEnumerates(s) per.readNumberOfSet(s) per.readChoice(s) if not per.readOctetStream(s, h221_sc_key, 4): raise InvalidExpectedDataException("cannot read h221_sc_key") return readServerDataBlocks(s)
def readConferenceCreateResponse(s): """ @summary: Read response from server and return server settings read from this response @param s: Stream @return: ServerSettings """ per.readChoice(s) per.readObjectIdentifier(s, t124_02_98_oid) per.readLength(s) per.readChoice(s) per.readInteger16(s, 1001) per.readInteger(s) per.readEnumerates(s) per.readNumberOfSet(s) per.readChoice(s) if not per.readOctetStream(s, h221_sc_key, 4): raise InvalidExpectedDataException("cannot read h221_sc_key") length = per.readLength(s) serverSettings = Settings(readLen=CallableValue(length)) s.readType(serverSettings) return serverSettings
def readConferenceCreateResponse(s): """ Read response from server and return server settings read from this response @param s: Stream @return: ServerSettings """ per.readChoice(s) per.readObjectIdentifier(s, t124_02_98_oid) per.readLength(s) per.readChoice(s) per.readInteger16(s, 1001) per.readInteger(s) per.readEnumerates(s) per.readNumberOfSet(s) per.readChoice(s) if not per.readOctetStream(s, h221_sc_key, 4): raise InvalidExpectedDataException("cannot read h221_sc_key") length = per.readLength(s) serverSettings = Settings(readLen = UInt32Le(length)) s.readType(serverSettings) return serverSettings