Skip to content

Commit

Permalink
fix(amf): PDU-Reject message is not proper for UnsupportedDNN cause s…
Browse files Browse the repository at this point in the history
…ent from AMF

Signed-off-by: Rajeshs23 <rajesh.sure@wavelabs.ai>
  • Loading branch information
Rajeshs23 committed Apr 19, 2022
1 parent 22e7bef commit 508e6e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lte/gateway/c/core/oai/tasks/amf/amf_smf_send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,13 @@ int amf_smf_process_pdu_session_packet(amf_ue_ngap_id_t ue_id,
} else {
OAILOG_INFO(
LOG_AMF_APP,
"DNN is not Supported or not Subscribed, reject with a cause: 91 "
"DNN is not Supported or not Subscribed, reject with a cause: 27 "
"\n");
M5GMmCause cause_dnn_reject =
M5GMmCause::DNN_NOT_SUPPORTED_OR_NOT_SUBSCRIBED;
rc = handle_sm_message_routing_failure(ue_id, msg, cause_dnn_reject);
rc = amf_pdu_session_establishment_reject(
ue_id, msg->payload_container.smf_msg.header.pdu_session_id,
msg->payload_container.smf_msg.header.procedure_transaction_id,
static_cast<uint8_t>(M5GSmCause::MISSING_OR_UNKNOWN_DNN));

ue_context->amf_context.smf_ctxt_map.erase(
msg->payload_container.smf_msg.header.pdu_session_id);
return rc;
Expand Down

0 comments on commit 508e6e3

Please sign in to comment.