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.
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.