Commit 60b7cb65 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Get correct supi with prerix

parent d0e04933
......@@ -895,8 +895,9 @@ void smf_context::handle_itti_msg(
// get supi and put into URL
std::string supi_prefix = {};
get_supi_prefix(supi_prefix);
std::string supi_str = supi_prefix + "-" + smf_supi_to_string(supi);
std::string url = "http://" + get_amf_addr() +
std::string supi_str =
smf_get_supi_with_prefix(supi_prefix, smf_supi_to_string(supi));
std::string url = "http://" + get_amf_addr() +
NAMF_COMMUNICATION_BASE +
smf_cfg.amf_addr.api_version +
fmt::format(
......@@ -1830,8 +1831,9 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// Get SUPI and put into URL
std::string supi_str = {};
supi_t supi = sm_context_resp_pending->res.get_supi();
supi_str = sm_context_resp_pending->res.get_supi_prefix() + "-" +
smf_supi_to_string(supi);
supi_str = smf_get_supi_with_prefix(
sm_context_resp_pending->res.get_supi_prefix(),
smf_supi_to_string(supi));
std::string url =
"http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE +
smf_cfg.amf_addr.api_version +
......@@ -3315,9 +3317,9 @@ void smf_context::handle_pdu_session_modification_network_requested(
// Fill N1N2MesasgeTransferRequestData
// get supi and put into URL
supi_t supi = itti_msg->msg.get_supi();
std::string supi_str =
itti_msg->msg.get_supi_prefix() + "-" + smf_supi_to_string(supi);
supi_t supi = itti_msg->msg.get_supi();
std::string supi_str = smf_get_supi_with_prefix(
itti_msg->msg.get_supi_prefix(), smf_supi_to_string(supi));
std::string url =
"http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE +
smf_cfg.amf_addr.api_version +
......@@ -4935,9 +4937,9 @@ void smf_context::send_pdu_session_create_response(
// Fill N1N2MesasgeTransferRequestData
// get SUPI and put into URL
supi_t supi = resp->res.get_supi();
std::string supi_str =
resp->res.get_supi_prefix() + "-" + smf_supi_to_string(supi);
supi_t supi = resp->res.get_supi();
std::string supi_str = smf_get_supi_with_prefix(
resp->res.get_supi_prefix(), smf_supi_to_string(supi));
std::string url =
"http://" + get_amf_addr() + NAMF_COMMUNICATION_BASE +
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