Pop all the fields we use during mobility management authorization out of the TMSI table.
| 685 | |
| 686 | // Pop all the fields we use during mobility management authorization out of the TMSI table. |
| 687 | bool TMSITable::tmsiTabGetStore(string imsi, TmsiTableStore *store) const |
| 688 | { |
| 689 | store->store_valid = true; // We have either updated the store or confirmed the imsi does not exist in the TMSI_TABLE. |
| 690 | sqlQuery q11(mTmsiDB,"TMSI_TABLE","AUTH,AUTH_EXPIRY,TMSI_ASSIGNED,REJECT_CODE,WELCOME_SENT", "IMSI",imsi.c_str()); |
| 691 | if (!q11.sqlSuccess()) { |
| 692 | LOG(INFO) << "No TMSI_TABLE table entry for"<<LOGVAR(imsi) <<LOGVAR2("query",q11.mQueryString); |
| 693 | return false; |
| 694 | } |
| 695 | store->auth = (Authorization) q11.getResultInt(0); //store->auth_valid = true; |
| 696 | store->authExpiry = q11.getResultInt(1); //store->authExpiry_valid = true; |
| 697 | store->assigned = q11.getResultInt(2); //store->assigned_valid = true; |
| 698 | store->rejectCode = q11.getResultInt(3); //store->rejectCode_valid = true; |
| 699 | store->welcomeSent = q11.getResultInt(4); //store->welcomeSent_valid = true; |
| 700 | LOG(DEBUG) <<LOGVAR2("auth",store->auth)<<LOGVAR2("authExpiry",store->authExpiry) |
| 701 | <<LOGVAR2("assigned",store->assigned)<<LOGVAR2("rejectCode",store->rejectCode)<<LOGVAR2("welcomSent",store->welcomeSent); |
| 702 | return true; |
| 703 | } |
| 704 | |
| 705 | |
| 706 | string TMSITable::tmsiTabGetIMSI(unsigned tmsi, unsigned *pAuthorizationResult) const |