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

Fix issue for Procedure Transaction ID

parent 2a7d22e4
...@@ -1171,7 +1171,7 @@ void smf_context::get_default_qos_flow_description( ...@@ -1171,7 +1171,7 @@ void smf_context::get_default_qos_flow_description(
(ParametersList*) calloc(3, sizeof(ParametersList)); (ParametersList*) calloc(3, sizeof(ParametersList));
qos_flow_description.parameterslist[0].parameteridentifier = qos_flow_description.parameterslist[0].parameteridentifier =
PARAMETER_IDENTIFIER_5QI; PARAMETER_IDENTIFIER_5QI;
qos_flow_description.parameterslist[0].parametercontents._5qi = qfi.qfi; qos_flow_description.parameterslist[0].parametercontents._5qi = DEFAULT_5QI;
/* /*
qos_flow_description.parameterslist[1].parameteridentifier = qos_flow_description.parameterslist[1].parameteridentifier =
PARAMETER_IDENTIFIER_GFBR_UPLINK; PARAMETER_IDENTIFIER_GFBR_UPLINK;
...@@ -2129,11 +2129,11 @@ bool smf_context::handle_pdu_session_release_request( ...@@ -2129,11 +2129,11 @@ bool smf_context::handle_pdu_session_release_request(
return false; return false;
} }
Logger::smf_app().info(
"PTI %d", nas_msg.plain.sm.header.procedure_transaction_identity);
procedure_transaction_id_t pti = { procedure_transaction_id_t pti = {
.procedure_transaction_id = .procedure_transaction_id =
nas_msg.plain.sm.header.procedure_transaction_identity}; nas_msg.plain.sm.header.procedure_transaction_identity};
Logger::smf_app().info("PTI %d", pti.procedure_transaction_id);
sm_context_resp.get()->res.set_pti(pti); sm_context_resp.get()->res.set_pti(pti);
// Message Type // Message Type
...@@ -3083,6 +3083,7 @@ bool smf_context::handle_pdu_session_update_sm_context_request( ...@@ -3083,6 +3083,7 @@ bool smf_context::handle_pdu_session_update_sm_context_request(
sm_context_req_msg.get_pdu_session_id()); sm_context_req_msg.get_pdu_session_id());
sm_context_rel_req_msg.set_snssai(sm_context_req_msg.get_snssai()); sm_context_rel_req_msg.set_snssai(sm_context_req_msg.get_snssai());
sm_context_rel_req_msg.set_dnn(sm_context_req_msg.get_dnn()); sm_context_rel_req_msg.set_dnn(sm_context_req_msg.get_dnn());
sm_context_rel_req_msg.set_pti(sm_context_req_msg.get_pti());
// check if update message contain N2 SM info // check if update message contain N2 SM info
if (sm_context_req_msg.n2_sm_info_is_set()) { if (sm_context_req_msg.n2_sm_info_is_set()) {
......
...@@ -760,7 +760,11 @@ bool smf_n1::create_n1_pdu_session_release_command( ...@@ -760,7 +760,11 @@ bool smf_n1::create_n1_pdu_session_release_command(
// ExtendedProtocolConfigurationOptions // ExtendedProtocolConfigurationOptions
Logger::smf_n1().debug( Logger::smf_n1().debug(
"SM message, 5GSM Cause: 0x%x", "SM message, PDU Session ID %d, PTI %d, Message Type %0x%x, 5GSM Cause: "
"0x%x",
sm_msg->header.pdu_session_identity,
sm_msg->header.procedure_transaction_identity,
sm_msg->header.message_type,
sm_msg->pdu_session_release_command._5gsmcause); sm_msg->pdu_session_release_command._5gsmcause);
// Encode NAS message // Encode NAS message
......
...@@ -231,7 +231,7 @@ bool smf_n2::create_n2_pdu_session_resource_setup_request_transfer( ...@@ -231,7 +231,7 @@ bool smf_n2::create_n2_pdu_session_resource_setup_request_transfer(
.choice.nonDynamic5QI = (Ngap_NonDynamic5QIDescriptor_t*) (calloc( .choice.nonDynamic5QI = (Ngap_NonDynamic5QIDescriptor_t*) (calloc(
1, sizeof(Ngap_NonDynamic5QIDescriptor_t))); 1, sizeof(Ngap_NonDynamic5QIDescriptor_t)));
ngap_QosFlowSetupRequestItem->qosFlowLevelQosParameters.qosCharacteristics ngap_QosFlowSetupRequestItem->qosFlowLevelQosParameters.qosCharacteristics
.choice.nonDynamic5QI->fiveQI = (uint8_t) qos_flow.qfi.qfi; .choice.nonDynamic5QI->fiveQI = (uint8_t) DEFAULT_5QI;
ngap_QosFlowSetupRequestItem->qosFlowLevelQosParameters ngap_QosFlowSetupRequestItem->qosFlowLevelQosParameters
.allocationAndRetentionPriority.priorityLevelARP = .allocationAndRetentionPriority.priorityLevelARP =
qos_flow.qos_profile.arp.priority_level; qos_flow.qos_profile.arp.priority_level;
......
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