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
1b9cc756
Commit
1b9cc756
authored
Apr 05, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Service reject handling
parent
f1442d1c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
12 deletions
+20
-12
src/ue/nas/mm/base.cpp
src/ue/nas/mm/base.cpp
+1
-1
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+1
-1
src/ue/nas/mm/register.cpp
src/ue/nas/mm/register.cpp
+4
-2
src/ue/nas/mm/service.cpp
src/ue/nas/mm/service.cpp
+3
-7
src/ue/nas/mm/timer.cpp
src/ue/nas/mm/timer.cpp
+1
-1
src/utils/common_types.hpp
src/utils/common_types.hpp
+10
-0
No files found.
src/ue/nas/mm/base.cpp
View file @
1b9cc756
...
...
@@ -106,7 +106,7 @@ void NasMm::performMmCycle()
if
(
m_mmSubState
==
EMmSubState
::
MM_DEREGISTERED_NORMAL_SERVICE
)
{
if
(
!
m_timers
->
t3346
.
isRunning
())
sendInitialRegistration
(
false
,
false
);
sendInitialRegistration
(
EInitialRegCause
::
MM_DEREG_NORMAL_SERVICE
);
return
;
}
...
...
src/ue/nas/mm/mm.hpp
View file @
1b9cc756
...
...
@@ -91,7 +91,7 @@ class NasMm
void
sendMobilityRegistration
(
ERegUpdateCause
updateCause
);
private:
/* Registration */
void
sendInitialRegistration
(
bool
isEmergencyReg
,
bool
dueToDereg
);
void
sendInitialRegistration
(
EInitialRegCause
regCause
);
void
receiveRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveInitialRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveMobilityRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
...
...
src/ue/nas/mm/register.cpp
View file @
1b9cc756
...
...
@@ -16,7 +16,7 @@
namespace
nr
::
ue
{
void
NasMm
::
sendInitialRegistration
(
bool
isEmergencyReg
,
bool
dueToDereg
)
void
NasMm
::
sendInitialRegistration
(
EInitialRegCause
regCause
)
{
if
(
m_rmState
!=
ERmState
::
RM_DEREGISTERED
)
{
...
...
@@ -24,6 +24,8 @@ void NasMm::sendInitialRegistration(bool isEmergencyReg, bool dueToDereg)
return
;
}
bool
isEmergencyReg
=
regCause
==
EInitialRegCause
::
EMERGENCY_SERVICES
;
// 5.5.1.2.7 Abnormal cases in the UE
// a) Timer T3346 is running.
if
(
m_timers
->
t3346
.
isRunning
()
&&
!
isEmergencyReg
&&
!
hasEmergency
())
...
...
@@ -33,7 +35,7 @@ void NasMm::sendInitialRegistration(bool isEmergencyReg, bool dueToDereg)
bool
highPriority
=
isHighPriority
();
// The UE shall not start the registration procedure for initial registration in the following case
if
(
!
highPriority
&&
!
dueToDereg
)
if
(
!
highPriority
&&
regCause
!=
EInitialRegCause
::
DUE_TO_DEREGISTRATION
)
{
m_logger
->
debug
(
"Initial registration canceled, T3346 is running"
);
return
;
...
...
src/ue/nas/mm/service.cpp
View file @
1b9cc756
...
...
@@ -327,17 +327,13 @@ void NasMm::receiveServiceReject(const nas::ServiceReject &msg)
if
(
cause
==
nas
::
EMmCause
::
UE_IDENTITY_CANNOT_BE_DERIVED_FROM_NETWORK
)
{
if
(
m_lastServiceReqCause
!=
EServiceReqCause
::
EMERGENCY_FALLBACK
)
{
// TODO: new initial registration
}
sendInitialRegistration
(
EInitialRegCause
::
DUE_TO_SERVICE_REJECT
);
}
if
(
cause
==
nas
::
EMmCause
::
IMPLICITY_DEREGISTERED
)
{
if
(
hasEmergency
())
{
// TODO: new initial registration
}
if
(
!
hasEmergency
())
sendInitialRegistration
(
EInitialRegCause
::
DUE_TO_SERVICE_REJECT
);
}
if
(
cause
==
nas
::
EMmCause
::
CONGESTION
)
...
...
src/ue/nas/mm/timer.cpp
View file @
1b9cc756
...
...
@@ -29,7 +29,7 @@ void NasMm::onTimerExpire(nas::NasTimer &timer)
if
(
m_mmSubState
==
EMmSubState
::
MM_DEREGISTERED_NORMAL_SERVICE
)
{
logExpired
();
sendInitialRegistration
(
false
,
false
);
sendInitialRegistration
(
EInitialRegCause
::
T3346_EXPIRY
);
}
break
;
}
...
...
src/utils/common_types.hpp
View file @
1b9cc756
...
...
@@ -119,6 +119,16 @@ enum class EDeregCause
ECALL_INACTIVITY
,
};
enum
class
EInitialRegCause
{
UNSPECIFIED
,
EMERGENCY_SERVICES
,
MM_DEREG_NORMAL_SERVICE
,
T3346_EXPIRY
,
DUE_TO_DEREGISTRATION
,
DUE_TO_SERVICE_REJECT
,
};
struct
GlobalNci
{
Plmn
plmn
{};
...
...
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