Added a debug message for cases of mismatching between constructor type and the tags defined for them.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4784 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
oana 2011-12-20 16:25:39 +00:00
parent 074464e7c2
commit a7ef65401a
1 changed files with 7 additions and 1 deletions

View File

@ -614,8 +614,14 @@ static bool encodeParam(const Parameter* param, DataBlock& data, XmlElement* ele
}
if (child->getAttribute(s_tagAttr) || child->getAttribute(s_encAttr))
ok = encodeRaw(param,data,child,err);
else
else {
if (param->tag.type() == AsnTag::Constructor &&
!(param->type == TcapXApplication::HexString || param->type == TcapXApplication::SequenceOf
|| param->type == TcapXApplication::Sequence || param->type == TcapXApplication::Choice))
Debug(&__plugin,DebugGoOn,"Encoding definition conflict for param='%s', tag is defined as contructor"
" while its type is primitive",param->name.c_str());
ok = type->encode(param,type,data,child,err);
}
elem->removeChild(child);
}
#ifdef XDEBUG