Unverified Commit 021891ce authored by Ali Güngör's avatar Ali Güngör Committed by GitHub

Merge pull request #329 from DendoD96/detailed-status-command

Enrich information displayed by ue cli status command
parents fffd1de1 41e7413a
......@@ -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