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

Update Supi for N7

parent 60b7cb65
...@@ -1495,8 +1495,8 @@ void smf_context::handle_pdu_session_create_sm_context_request( ...@@ -1495,8 +1495,8 @@ void smf_context::handle_pdu_session_create_sm_context_request(
bool use_pcf_policy = false; bool use_pcf_policy = false;
sp.get()->policy_ptr->set_context( sp.get()->policy_ptr->set_context(
smf_supi_to_string_without_nulls(smreq->req.get_supi()), smf_supi_to_string_without_nulls(smreq->req.get_supi()),
smreq->req.get_dnn(), snssai, plmn, smreq->req.get_pdu_session_id(), smreq->req.get_supi_prefix(), smreq->req.get_dnn(), snssai, plmn,
smreq->req.get_pdu_session_type()); smreq->req.get_pdu_session_id(), smreq->req.get_pdu_session_type());
// TODO what is the exact meaning of SCID? Is this unique per registration // TODO what is the exact meaning of SCID? Is this unique per registration
// or unique per PDU session? // or unique per PDU session?
......
...@@ -72,8 +72,9 @@ struct policy_association { ...@@ -72,8 +72,9 @@ struct policy_association {
std::string pcf_location; std::string pcf_location;
void set_context( void set_context(
const std::string& supi, const std::string& dnn, const snssai_t& snssai, const std::string& supi, const std::string& supi_prefix,
const plmn_t& plmn, const uint8_t pdu_session_id, const std::string& dnn, const snssai_t& snssai, const plmn_t& plmn,
const uint8_t pdu_session_id,
const pdu_session_type_t& pdu_session_type) { const pdu_session_type_t& pdu_session_type) {
oai::smf_server::model::Snssai snssai_model; oai::smf_server::model::Snssai snssai_model;
snssai_model.setSst(snssai.sst); snssai_model.setSst(snssai.sst);
...@@ -90,8 +91,7 @@ struct policy_association { ...@@ -90,8 +91,7 @@ struct policy_association {
context = {}; context = {};
context.setPduSessionId(pdu_session_id); context.setPduSessionId(pdu_session_id);
// TODO only support imsi SUPI, not NAI context.setSupi(smf_get_supi_with_prefix(supi_prefix, supi));
context.setSupi("imsi-" + supi);
oai::smf_server::model::PduSessionType pdu_session_type_model; oai::smf_server::model::PduSessionType pdu_session_type_model;
// hacky // hacky
from_json(pdu_session_type.to_string(), pdu_session_type_model); from_json(pdu_session_type.to_string(), pdu_session_type_model);
......
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