Hi,
I am using osmo-nitb version 0.12.0.264-b02f. When I set value to authorized to 1 for ID 1 via the telnet console then I do not see the this value change with "show subscriber". The "authorized" field value in the DB did change from 0 to 1.
- start with new DB freshly initialized by osmo-nitb running in foreground as root (auth policy closed) - SIM tries to register and fails as it is not authorized: (1|2013-02-28 14:57:43|2013-02-28 14:57:43|901700000001198||38178|0||0|1970-01-01 00:00:00)
- set auth with: subscriber id 1 authorized 1 console shows: <000d> db.c:161 DBI: -7: The requested variable type does not match what libdbi thinks it should be <000d> db.c:161 DBI: -7: The requested variable type does not match what libdbi thinks it should be <000d> db.c:713 Found Subscriber: ID 0, IMSI 901700000001198, NAME '', TMSI 4294967295, EXTEN '38178', LAC 0, AUTH 0
- DB shows: 1|2013-02-28 14:57:43|2013-02-28 15:06:11|901700000001198||38178|1||0|1970-01-01 00:00:00 - however in the console it is not changing its state: OpenBSC# show subscriber id 1 ID: 0, Authorized: 0
- using "subscriber id 1 update" has no effect.
I can see the auth value change in the console after I set auth policy to accept-all, then let the IMSI update its location, then set auth-policy back to auth policy closed. And then "subscriber id 1 authorize 1". After this sequence IMSI can update its location value.
Why can I not get the auth value activated from the DB? Is it related to the db.c about the variable type message? Once the SIM is registered all is working well and I can make calls.
Regards,
Max