From cb5e329c22eb25e46cf861617bb1bc6eeb59242a Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Sun, 17 Dec 2017 19:55:12 +0000 Subject: [PATCH] Starting to release GTP-U tunnels when UE disconnects. --- srsepc/src/mme/s1ap.cc | 3 +++ srsepc/src/spgw/spgw.cc | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/srsepc/src/mme/s1ap.cc b/srsepc/src/mme/s1ap.cc index 745797f50..1bee40692 100644 --- a/srsepc/src/mme/s1ap.cc +++ b/srsepc/src/mme/s1ap.cc @@ -968,6 +968,9 @@ s1ap::handle_ue_context_release_request(LIBLTE_S1AP_MESSAGE_UECONTEXTRELEASEREQU } ue_set->second.erase(mme_ue_s1ap_id); + //Delete any context at the SPGW + m_spgw->delete_session_request(ue_ctx->imsi); + //Delete UE context delete ue_ctx->second; m_active_ues.erase(ue_ctx); diff --git a/srsepc/src/spgw/spgw.cc b/srsepc/src/spgw/spgw.cc index afd7efef4..015ca8683 100644 --- a/srsepc/src/spgw/spgw.cc +++ b/srsepc/src/spgw/spgw.cc @@ -471,6 +471,12 @@ spgw::handle_create_session_request(struct srslte::gtpc_create_session_request * return; } +void +spgw::delete_session_request(uint64_t imsi) +{ + +} + void spgw::handle_modify_bearer_request(struct srslte::gtpc_pdu *mb_req_pdu, struct srslte::gtpc_pdu *mb_resp_pdu) {