Commit 41e7413a authored by Daniele's avatar Daniele

Add dnn and snssai to SessionInfo.

parent f4ba25f0
......@@ -129,6 +129,11 @@ void UeAppTask::receiveStatusUpdate(NwUeStatusUpdate &msg)
UePduSessionInfo sessionInfo{};
sessionInfo.psi = session->psi;
if (session->apn.has_value())
sessionInfo.apn = session->apn.value();
if(session->sNssai.has_value())
sessionInfo.sNssai = session->sNssai.value();
sessionInfo.type = nas::utils::EnumToString(session->sessionType);
if (session->pduAddress.has_value())
sessionInfo.address = utils::OctetStringToIp(session->pduAddress->pduAddressInformation);
......
......@@ -242,6 +242,8 @@ Json ToJson(const UePduSessionInfo &v)
{"type", v.type},
{"address", v.address},
{"emergency", v.isEmergency},
{"apn", v.apn},
{"sNssai", ToJson(v.sNssai)}
});
}
......
......@@ -390,6 +390,8 @@ struct UePduSessionInfo
std::string address{};
bool isEmergency{};
bool uplinkPending{};
std::string apn{};
SingleSlice sNssai{};
};
enum class ERegUpdateCause
......
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