Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
UERANSIM
Commits
16c056f8
Commit
16c056f8
authored
May 27, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
85c8b727
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/ue/nas/mm/access.cpp
src/ue/nas/mm/access.cpp
+8
-3
src/ue/nas/usim/usim.hpp
src/ue/nas/usim/usim.hpp
+2
-1
No files found.
src/ue/nas/mm/access.cpp
View file @
16c056f8
...
@@ -18,23 +18,28 @@ bool NasMm::hasEmergency()
...
@@ -18,23 +18,28 @@ bool NasMm::hasEmergency()
{
{
// Indicates emergency services are required (even if registered for normal initial registration)
// Indicates emergency services are required (even if registered for normal initial registration)
// This happens if it 'has' or 'need' some emergency PDU Session, as well.
// This happens if it 'has' or 'need' some emergency PDU Session, as well.
if
(
m_rmState
==
ERmState
::
RM_REGISTERED
&&
m_registeredForEmergency
)
if
(
m_rmState
==
ERmState
::
RM_REGISTERED
&&
m_registeredForEmergency
)
return
true
;
return
true
;
if
(
m_mmState
==
EMmState
::
MM_REGISTERED_INITIATED
&&
m_lastRegistrationRequest
&&
if
(
m_mmState
==
EMmState
::
MM_REGISTERED_INITIATED
&&
m_lastRegistrationRequest
&&
m_lastRegistrationRequest
->
registrationType
.
registrationType
==
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
m_lastRegistrationRequest
->
registrationType
.
registrationType
==
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
return
true
;
return
true
;
if
(
m_procCtl
.
initialRegistration
&&
m_procCtl
.
initialRegistration
==
EInitialRegCause
::
EMERGENCY_SERVICES
)
if
(
m_procCtl
.
initialRegistration
&&
m_procCtl
.
initialRegistration
==
EInitialRegCause
::
EMERGENCY_SERVICES
)
return
true
;
return
true
;
if
(
m_procCtl
.
mobilityRegistration
&&
m_procCtl
.
mobilityRegistration
==
ERegUpdateCause
::
EMERGENCY_CASE
)
if
(
m_procCtl
.
mobilityRegistration
&&
m_procCtl
.
mobilityRegistration
==
ERegUpdateCause
::
EMERGENCY_CASE
)
return
true
;
return
true
;
if
(
m_procCtl
.
serviceRequest
&&
m_procCtl
.
serviceRequest
==
EServiceReqCause
::
EMERGENCY_FALLBACK
)
if
(
m_procCtl
.
serviceRequest
&&
m_procCtl
.
serviceRequest
==
EServiceReqCause
::
EMERGENCY_FALLBACK
)
return
true
;
return
true
;
// TODO: Other case which is an emergency PDU session need to be established (and wanted to be
// established soon)
if
(
m_sm
->
anyEmergencySession
())
if
(
m_sm
->
anyEmergencySession
())
return
true
;
return
true
;
if
(
m_usim
->
m_emgIndication
)
return
true
;
return
false
;
return
false
;
}
}
...
...
src/ue/nas/usim/usim.hpp
View file @
16c056f8
...
@@ -35,7 +35,8 @@ class Usim
...
@@ -35,7 +35,8 @@ class Usim
std
::
unique_ptr
<
SqnManager
>
m_sqnMng
{};
std
::
unique_ptr
<
SqnManager
>
m_sqnMng
{};
// Others
// Others
bool
m_isECallOnly
{};
// todo: configurable
bool
m_isECallOnly
=
false
;
// todo: configurable
bool
m_emgIndication
=
false
;
// todo: configurable
public:
public:
void
initialize
(
bool
hasSupi
,
const
UeConfig
::
Initials
&
initials
);
void
initialize
(
bool
hasSupi
,
const
UeConfig
::
Initials
&
initials
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment