Fixed bug: properly interpret odd/even indicator in the decoder for phone numbers.

git-svn-id: http://voip.null.ro/svn/yate@5299 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
oana 2012-10-19 09:24:04 +00:00
parent 0c37007e78
commit e89c895ecb
1 changed files with 1 additions and 1 deletions

View File

@ -1909,7 +1909,7 @@ static bool decodeCallNumber(const Parameter* param, MapCamelType* type, AsnTag&
qualifier = data[index];
index++;
}
bool odd = (data[index] & 0x80) == 1;
bool odd = (data[index] & 0x80) != 0;
unsigned char nai = data[index] & 0x7f;
index++;
unsigned char plan = (data[index] >> 4) & 7;