The parser is now adding the message type name to the parameter list when decoding.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1656 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-01-23 12:02:16 +00:00
parent 4ea4ab122b
commit 11730667c0
1 changed files with 12 additions and 0 deletions

View File

@ -2337,6 +2337,18 @@ bool SS7ISUP::decodeMessage(NamedList& msg,
return false;
}
// Add protocol type
switch (pcType) {
case SS7PointCode::ITU:
msg.addParam("protocol-type","itu-t");
break;
case SS7PointCode::ANSI:
case SS7PointCode::ANSI8:
msg.addParam("protocol-type","ansi");
break;
default: ;
}
const SS7MsgISUP::Parameters* plist = params->params;
SS7MsgISUP::Parameters ptype;
// first decode any mandatory fixed parameters the message should have