// JP opened flex table

Click to See Complete Forum and Search --> : MEGACO parsing


kasru
February 13th, 2007, 08:59 AM
Hello, All.



Is it possible to parse something like that with OpenH323?

!/1 <company1.com>:2944

T=1{C=-{SC=ROOT{SV{MT=RS,RE="901 Cold oot",V=1,PF=ResGW/1,20070130T07185669}}}}

I've tried:


H248_Message msg;

data = "!/1 <company1.com>:2944\nT=1{C=-{SC=ROOT{SV{MT=RS,RE=\"901 Cold Boot\",V=1,PF=ResGW/1,20070130T07185669}}}}";
len = strlen(data);

PPER_Stream bytes(data, len);

BOOL b = msg.Decode(bytes);

if (b)
{
msg.PrintOn(std::cout);
}


but it seems to me that H248_Message treats first byte of data (exclamation
mark) as version of protocol
and output is

"version = 33
mId = domainName {
name = " <company1.com>:2944\nT=1{C=-{SC=ROOT{SV{MT=RS,RE="
portNumber = 8761
}
messageBody = messageError {
errorCode = 12576
}"


Thanks.

MrViggy
February 13th, 2007, 11:45 AM
What is a "H248_Message" object?

Viggy

kasru
February 19th, 2007, 01:38 AM
What is a "H248_Message" object?

It's class of OpenH323
http://www.openh323.org/

//JP added flex table