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:
parent
0c37007e78
commit
e89c895ecb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue