How to decode H245 Request packet?

Discussion related to implementation and use of the H.323 Plus H.323 stack at http://www.h323plus.org.
Post Reply
saeed.zamani
Posts: 1
Joined: Mon Nov 04, 2013 7:32 am

How to decode H245 Request packet?

Post 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?

Post Reply