Commit c1e093e8 authored by aligungr's avatar aligungr

NAS paging handling

parent a6572861
...@@ -230,6 +230,26 @@ void NasMm::localReleaseConnection() ...@@ -230,6 +230,26 @@ void NasMm::localReleaseConnection()
void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds) void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds)
{ {
// Check received TMSI identities
if (m_usim->m_storedGuti.type == nas::EIdentityType::NO_IDENTITY)
return;
bool tmsiMatches = false;
for (auto &tmsi : tmsiIds)
{
if (tmsi.amfSetId == m_usim->m_storedGuti.gutiOrTmsi.amfSetId &&
tmsi.amfPointer == m_usim->m_storedGuti.gutiOrTmsi.amfPointer &&
tmsi.tmsi == m_usim->m_storedGuti.gutiOrTmsi.tmsi)
{
tmsiMatches = true;
break;
}
}
if (!tmsiMatches)
return;
// Handle Paging message
m_logger->debug("Paging received");
// TODO // TODO
} }
......
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