Fixed bug with in GUTI attach with unkown M-TMSI.

master
Pedro Alvarez 7 years ago
parent a8bfa497ef
commit 0da56b6a5a

@ -216,7 +216,7 @@ mme_gtpc::handle_create_session_response(srslte::gtpc_pdu *cs_resp_pdu)
//Save create session response info to E-RAB context //Save create session response info to E-RAB context
ue_ctx_t *ue_ctx = m_s1ap->find_ue_ctx_from_imsi(imsi); ue_ctx_t *ue_ctx = m_s1ap->find_ue_ctx_from_imsi(imsi);
if(ue_ctx == NULL){ if(ue_ctx == NULL){
m_mme_gtpc_log->error("Could not find UE context\n"); m_mme_gtpc_log->error("Could not find UE context. IMSI %015lu\n", imsi);
return; return;
} }
ue_emm_ctx_t *emm_ctx = &ue_ctx->emm_ctx; ue_emm_ctx_t *emm_ctx = &ue_ctx->emm_ctx;

@ -950,8 +950,8 @@ s1ap_nas_transport::handle_identity_response(srslte::byte_buffer_t *nas_msg, ue_
return false; return false;
} }
//Store UE EMM context //Store UE context im IMSI map
//m_s1ap->add_new_ue_emm_ctx(ue_emm_ctx); m_s1ap->add_ue_ctx_to_imsi_map(ue_ctx);
//Pack NAS Authentication Request in Downlink NAS Transport msg //Pack NAS Authentication Request in Downlink NAS Transport msg
pack_authentication_request(reply_msg, ecm_ctx->enb_ue_s1ap_id, ecm_ctx->mme_ue_s1ap_id, autn, rand); pack_authentication_request(reply_msg, ecm_ctx->enb_ue_s1ap_id, ecm_ctx->mme_ue_s1ap_id, autn, rand);

Loading…
Cancel
Save