Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-SMF
Commits
a15a05c0
Commit
a15a05c0
authored
Apr 22, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update
parent
c80f26ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
src/smf_app/smf_n1_n2.cpp
src/smf_app/smf_n1_n2.cpp
+22
-6
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+1
-2
No files found.
src/smf_app/smf_n1_n2.cpp
View file @
a15a05c0
...
...
@@ -276,8 +276,8 @@ void smf_n1_n2::create_n1_sm_container(pdu_session_msg &msg,
.
get_snssai
().
sST
;
try
{
sm_msg
->
pdu_session_establishment_accept
.
snssai
.
sd
=
std
::
stoul
(
sm_context_res
.
get_snssai
().
sD
,
nullptr
,
16
);
sm_msg
->
pdu_session_establishment_accept
.
snssai
.
sd
=
std
::
stoul
(
sm_context_res
.
get_snssai
().
sD
,
nullptr
,
16
);
}
catch
(
const
std
::
exception
&
e
)
{
Logger
::
smf_app
().
warn
(
"Error when converting from string to int for snssai.SD, error: %s"
,
...
...
@@ -388,7 +388,7 @@ void smf_n1_n2::create_n1_sm_container(pdu_session_msg &msg,
static_cast
<
uint8_t
>
(
sm_cause
);
//Presence
sm_msg
->
pdu_session_establishment_reject
.
presence
=
PDU_SESSION_ESTABLISHMENT_REJECT_ALLOWED_SSC_MODE_PRESENCE
;
//Should be updated according to the following IEs
PDU_SESSION_ESTABLISHMENT_REJECT_ALLOWED_SSC_MODE_PRESENCE
;
//Should be updated according to the following IEs
/*
//GPRSTimer3
sm_msg->pdu_session_establishment_reject.gprstimer3.unit =
...
...
@@ -455,7 +455,7 @@ void smf_n1_n2::create_n1_sm_container(pdu_session_msg &msg,
break
;
case
PDU_SESSION_MODIFICATION_COMMAND
:
{
//PDU Session Modification Command is included in the following m
sg
s:
//PDU Session Modification Command is included in the following m
essage
s:
//1- PDU Session Update SM Context Response (PDU Session Modification UE-Initiated procedure - step 1)
//2- N1N2MessageTransfer Request (PDU Session Modification SMF-Requested, step 1 (from SMF to AMF))
...
...
@@ -469,11 +469,11 @@ void smf_n1_n2::create_n1_sm_container(pdu_session_msg &msg,
"PDU_SESSION_MODIFICATION_COMMAND, encode starting..."
);
//Fill the content of PDU Session Establishment Request message with hardcoded values (to be completed)
//Message Type
sm_msg
->
header
.
message_type
=
PDU_SESSION_MODIFICATION_COMMAND
;
//PTI
sm_msg
->
header
.
procedure_transaction_identity
=
sm_context_res
.
get_pti
()
.
procedure_transaction_id
;
//Message Type
sm_msg
->
header
.
message_type
=
PDU_SESSION_MODIFICATION_COMMAND
;
//PDU Session Type
sm_msg
->
pdu_session_modification_command
.
messagetype
=
sm_context_res
.
get_msg_type
();
...
...
@@ -483,6 +483,22 @@ void smf_n1_n2::create_n1_sm_container(pdu_session_msg &msg,
sm_msg
->
pdu_session_modification_command
.
_5gsmcause
=
static_cast
<
uint8_t
>
(
sm_cause
);
//sm_context_res.get_cause();
/*
ExtendedProtocolDiscriminator extendedprotocoldiscriminator;
PDUSessionIdentity pdusessionidentity;
ProcedureTransactionIdentity proceduretransactionidentity;
MessageType messagetype;
uint8_t presence;
_5GSMCause _5gsmcause;
SessionAMBR sessionambr;
GPRSTimer gprstimer;
AlwaysonPDUSessionIndication alwaysonpdusessionindication;
QOSRules qosrules;
MappedEPSBearerContexts mappedepsbearercontexts;
QOSFlowDescriptions qosflowdescriptions;
ExtendedProtocolConfigurationOptions extendedprotocolconfigurationoptions;
*/
//SessionAMBR
//TODO: get from subscription DB
supi_t
supi
=
sm_context_res
.
get_supi
();
...
...
src/smf_app/smf_procedure.cpp
View file @
a15a05c0
...
...
@@ -389,8 +389,7 @@ void session_create_sm_context_procedure::handle_itti_msg(
Logger
::
smf_app
().
debug
(
"Prepare a PDU Session Establishment Accept message and send to UE"
);
smf_n1_n2_inst
.
create_n1_sm_container
(
n11_triggered_pending
->
res
,
PDU_SESSION_ESTABLISHMENT_ACCEPT
,
n1_sm_msg
,
PDU_SESSION_ESTABLISHMENT_ACCEPT
,
n1_sm_msg
,
cause_value_5gsm_e
::
CAUSE_0_UNKNOWN
);
//TODO: need cause?
smf_app_inst
->
convert_string_2_hex
(
n1_sm_msg
,
n1_sm_msg_hex
);
n11_triggered_pending
->
res
.
set_n1_sm_message
(
n1_sm_msg_hex
);
...
...
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