osmo-bsc_nat: Parse MGCP Connection ID as hex

Our ttcn3-bscnat-tests would randomly fail. After the CRCX ACK returns
from the MSC the bsc-nat reports it could not find a CI it it and
deletes the connection on the BSC-side.

This happens because the field is parsed as a decimal value instead of
hexadecimal. So a value of 00FED122 is parsed as '0' which is a reserved
value in our program.

This fix parses the field as hexadecimal value and also logs an error if
the value happens to be 0.

make check will now test if a hexadecimal CI is parsed correctly.

Fixes: OS#3951
Change-Id: I49b8b61644bf706162102dce268cae2265536fc5
4 files changed
tree: 83e82c31915743d85240dafd4c7d5b2170399f76
  1. contrib/
  2. debian/
  3. manuals/
  4. openbsc/
  5. .gitignore
  6. .gitreview
  7. .mailmap