Commit c4eded29 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Display UE context Info

parent def65b9a
...@@ -892,7 +892,7 @@ void smf_app::handle_pdu_session_create_sm_context_request( ...@@ -892,7 +892,7 @@ void smf_app::handle_pdu_session_create_sm_context_request(
// If no DNN information from UE, set to default value // If no DNN information from UE, set to default value
std::string dnn = smreq->req.get_dnn(); std::string dnn = smreq->req.get_dnn();
if (dnn.length() == 0) { if (dnn.length() == 0) {
dnn == smf_cfg.get_default_dnn(); dnn = smf_cfg.get_default_dnn();
} }
// TODO: For the moment, not support PDU session authentication and // TODO: For the moment, not support PDU session authentication and
......
...@@ -1233,8 +1233,6 @@ std::string smf_config::get_default_dnn() { ...@@ -1233,8 +1233,6 @@ std::string smf_config::get_default_dnn() {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
bool smf_config::get_nwi_list_index( bool smf_config::get_nwi_list_index(
bool nwi_enabled, uint8_t nwi_list_index, pfcp::node_id_t node_id) { bool nwi_enabled, uint8_t nwi_list_index, pfcp::node_id_t node_id) {
Logger::smf_app().debug("Default DNN: %s", smf_cfg.dnn[0].dnn.c_str());
// return smf_cfg.dnn[0].dnn;
if (node_id.node_id_type == pfcp::NODE_ID_TYPE_IPV4_ADDRESS) { if (node_id.node_id_type == pfcp::NODE_ID_TYPE_IPV4_ADDRESS) {
for (int i = 0; i < upf_nwi_list.size(); i++) { for (int i = 0; i < upf_nwi_list.size(); i++) {
if (node_id.u1.ipv4_address.s_addr == if (node_id.u1.ipv4_address.s_addr ==
......
...@@ -1194,6 +1194,10 @@ void session_update_sm_context_procedure::handle_itti_msg( ...@@ -1194,6 +1194,10 @@ void session_update_sm_context_procedure::handle_itti_msg(
// set UpCnxState to ACTIVATED // set UpCnxState to ACTIVATED
sps->set_upCnx_state(upCnx_state_e::UPCNX_STATE_ACTIVATED); sps->set_upCnx_state(upCnx_state_e::UPCNX_STATE_ACTIVATED);
// Display UE Context Info
Logger::smf_app().info(
"SMF context: \n %s", sc.get()->toString().c_str());
// Trigger Event_exposure event // Trigger Event_exposure event
std::string str_scid = n11_trigger.get()->scid; std::string str_scid = n11_trigger.get()->scid;
// TODO: validate the str_scid // TODO: validate the str_scid
......
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