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

Get correct supi with prerix

parent e048e90e
...@@ -895,7 +895,8 @@ void smf_context::handle_itti_msg( ...@@ -895,7 +895,8 @@ void smf_context::handle_itti_msg(
// get supi and put into URL // get supi and put into URL
std::string supi_prefix = {}; std::string supi_prefix = {};
get_supi_prefix(supi_prefix); get_supi_prefix(supi_prefix);
std::string supi_str = supi_prefix + "-" + smf_supi_to_string(supi); std::string supi_str =
smf_get_supi_with_prefix(supi_prefix, smf_supi_to_string(supi));
std::string url = "http://" + get_amf_addr() + std::string url = "http://" + get_amf_addr() +
NAMF_COMMUNICATION_BASE + NAMF_COMMUNICATION_BASE +
smf_cfg.amf_addr.api_version + smf_cfg.amf_addr.api_version +
...@@ -1815,8 +1816,9 @@ void smf_context::handle_pdu_session_create_sm_context_request( ...@@ -1815,8 +1816,9 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// Get SUPI and put into URL // Get SUPI and put into URL
std::string supi_str = {}; std::string supi_str = {};
supi_t supi = sm_context_resp_pending->res.get_supi(); supi_t supi = sm_context_resp_pending->res.get_supi();
supi_str = sm_context_resp_pending->res.get_supi_prefix() + "-" + supi_str = smf_get_supi_with_prefix(
smf_supi_to_string(supi); sm_context_resp_pending->res.get_supi_prefix(),
smf_supi_to_string(supi));
std::string url = std::string url =
"http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE + "http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE +
smf_cfg.amf_addr.api_version + smf_cfg.amf_addr.api_version +
...@@ -3301,8 +3303,8 @@ void smf_context::handle_pdu_session_modification_network_requested( ...@@ -3301,8 +3303,8 @@ void smf_context::handle_pdu_session_modification_network_requested(
// Fill N1N2MesasgeTransferRequestData // Fill N1N2MesasgeTransferRequestData
// get supi and put into URL // get supi and put into URL
supi_t supi = itti_msg->msg.get_supi(); supi_t supi = itti_msg->msg.get_supi();
std::string supi_str = std::string supi_str = smf_get_supi_with_prefix(
itti_msg->msg.get_supi_prefix() + "-" + smf_supi_to_string(supi); itti_msg->msg.get_supi_prefix(), smf_supi_to_string(supi));
std::string url = std::string url =
"http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE + "http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE +
smf_cfg.amf_addr.api_version + smf_cfg.amf_addr.api_version +
...@@ -4944,8 +4946,8 @@ void smf_context::send_pdu_session_create_response( ...@@ -4944,8 +4946,8 @@ void smf_context::send_pdu_session_create_response(
// Fill N1N2MesasgeTransferRequestData // Fill N1N2MesasgeTransferRequestData
// get SUPI and put into URL // get SUPI and put into URL
supi_t supi = resp->res.get_supi(); supi_t supi = resp->res.get_supi();
std::string supi_str = std::string supi_str = smf_get_supi_with_prefix(
resp->res.get_supi_prefix() + "-" + smf_supi_to_string(supi); resp->res.get_supi_prefix(), smf_supi_to_string(supi));
std::string url = std::string url =
"http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE + "http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE +
smf_cfg.amf_addr.api_version + smf_cfg.amf_addr.api_version +
......
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