Commit 53918202 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix PDU session release

parent cbe98b5c
......@@ -3440,10 +3440,13 @@ void amf_n1::ue_initiate_de_registration_handle(
uint32_t http_response_code = smf_responses.begin()->second.get();
// Remove PDU session
// TODO for multiple sessions
if ((http_response_code == 200) or (http_response_code == 204)) {
for (auto session : sessions_ctx) {
uc->remove_pdu_sessions_context(session->pdu_session_id);
}
}
}
smf_responses.erase(smf_responses.begin());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment