Complain when mapping NI -> Type -> NI of received SS7 SLTM is not identity.

This helps catching netind2pctype MTP3 misconfiguration.


git-svn-id: http://voip.null.ro/svn/yate@4197 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-03-22 00:00:02 +00:00
parent 2eb6308915
commit cc854c5b4f
1 changed files with 4 additions and 1 deletions

View File

@ -283,7 +283,10 @@ bool SS7Layer3::maintenance(const SS7MSU& msu, const SS7Label& label, int sls)
if (badLink) {
addr << " on " << sls;
level = DebugMild;
badLink = true;
}
if (getNI(type(msu.getNI())) != msu.getNI()) {
addr << " wrong " << msu.getIndicatorName() << " NI";
level = DebugMild;
}
unsigned char len = s[1] >> 4;
// get a pointer to the test pattern