Bug Fixed!

Set odd/even flag properly in nature of address octet.


git-svn-id: http://yate.null.ro/svn/yate/trunk@4710 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
andrei 2011-11-16 16:37:04 +00:00
parent 080d295fae
commit 42288dafec
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ static unsigned char encodeItuAddress(const SS7SCCP* sccp, SS7MSU& msu,
addressIndicator |= 0x04;
int nai = nature->toInteger(s_nai);
odd = (gtNr->length() % 2) ? false : true;
if (odd)
if (!odd)
nai |= 0x80;
data[++length] = nai & 0xff;
} else if (translation && !(plan && encoding) && !nature) { // GT = 0x02