Page 1 of 1

How to decode H245 Request packet?

Posted: Mon Nov 04, 2013 8:08 am
by saeed.zamani
I've got a H245 hex stream like this:

Code: Select all

char pkt5[] = {0x01, 0x00, 0x32, 0x80, 0x37, 0x82, 0xde};
with:
terminalType: 50
statusDeterminationNumber: 3637982
How can I decode this stream? I tried the following code but got no correct result?

Code: Select all

PPER_Stream strm((const BYTE*)pkt5, 7, true);
H245_MasterSlaveDetermination h254pdu;
PBoolean result = h254pdu.Decode(strm);
Although "result" is true, but the two parameters have not been decoded as expected. What's wrong with my code?