From 7dd734510bafdd11014bd690d9a55950dd541015 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 22 Feb 2018 18:38:25 +0000 Subject: [PATCH] added EMM cause 'CS not avilable' and ESM cause 'PDN type only IPv4 allowed.' --- srsepc/src/mme/s1ap_nas_transport.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srsepc/src/mme/s1ap_nas_transport.cc b/srsepc/src/mme/s1ap_nas_transport.cc index 627851d59..58872b194 100644 --- a/srsepc/src/mme/s1ap_nas_transport.cc +++ b/srsepc/src/mme/s1ap_nas_transport.cc @@ -1561,10 +1561,13 @@ s1ap_nas_transport::pack_attach_accept(ue_emm_ctx_t *ue_emm_ctx, ue_ecm_ctx_t *u attach_accept.guti.guti.mme_code, attach_accept.guti.guti.m_tmsi); + //Set EMM cause to no CS available + attach_accept.emm_cause_present=true; + attach_accept.emm_cause=18; + //Make sure all unused options are set to false attach_accept.lai_present=false; attach_accept.ms_id_present=false; - attach_accept.emm_cause_present=false; attach_accept.t3402_present=false; attach_accept.t3423_present=false; attach_accept.equivalent_plmns_present=false; @@ -1608,7 +1611,8 @@ s1ap_nas_transport::pack_attach_accept(ue_emm_ctx_t *ue_emm_ctx, ue_ecm_ctx_t *u act_def_eps_bearer_context_req.radio_prio_present = false; act_def_eps_bearer_context_req.packet_flow_id_present = false; act_def_eps_bearer_context_req.apn_ambr_present = false; - act_def_eps_bearer_context_req.esm_cause_present = false; + act_def_eps_bearer_context_req.esm_cause_present = true; + act_def_eps_bearer_context_req.esm_cause = 50; uint8_t sec_hdr_type =2; ue_emm_ctx->security_ctxt.dl_nas_count++;