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
c240e30e
Commit
c240e30e
authored
Oct 16, 2020
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix for PDU Session Release Notification
parent
273546b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
+18
-17
src/api-server/impl/IndividualSMContextApiImpl.cpp
src/api-server/impl/IndividualSMContextApiImpl.cpp
+3
-3
src/smf_app/smf_event.cpp
src/smf_app/smf_event.cpp
+15
-14
No files found.
src/api-server/impl/IndividualSMContextApiImpl.cpp
View file @
c240e30e
...
...
@@ -146,7 +146,8 @@ void IndividualSMContextApiImpl::update_sm_context(
sm_context_req_msg
.
set_n2_sm_information
(
n2_sm_information
);
sm_context_req_msg
.
set_n2_sm_info_type
(
n2_sm_info_type
);
}
else
if
(
smContextUpdateData
.
n1SmMsgIsSet
())
{
}
if
(
smContextUpdateData
.
n1SmMsgIsSet
())
{
//N1 SM (for session modification)
std
::
string
n1_sm_message
=
smContextUpdateMessage
.
getBinaryDataN1SmMessage
();
...
...
@@ -241,8 +242,7 @@ void IndividualSMContextApiImpl::update_sm_context(
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"multipart/related; boundary="
+
std
::
string
(
CURL_MIME_BOUNDARY
)));
}
if
(
sm_context_response
.
n2_sm_info_is_set
())
{
}
else
if
(
sm_context_response
.
n2_sm_info_is_set
())
{
parser
.
create_multipart_related_content
(
body
,
json_data
.
dump
(),
CURL_MIME_BOUNDARY
,
sm_context_response
.
get_n2_sm_information
(),
...
...
src/smf_app/smf_event.cpp
View file @
c240e30e
...
...
@@ -118,28 +118,29 @@ void smf_event::send_ee_pdu_session_release(supi64_t supi,
uint8_t
http_version
)
{
Logger
::
smf_app
().
debug
(
"Send request to N11 to triger PDU Session Release Notification, SUPI "
SUPI_64_FMT
" , PDU Session ID %d, HTTP version %d"
,
supi
,
pdu_session_id
,
http_version
);
std
::
vector
<
std
::
shared_ptr
<
smf_subscription
>>
subscriptions
;
std
::
shared_ptr
<
smf_subscription
>
subscription
;
//
std::vector < std::shared_ptr < smf_subscription >> subscriptions;
std
::
shared_ptr
<
smf_subscription
>
subscription
=
{}
;
smf_app_inst
->
get_ee_subscriptions
(
smf_event_t
::
SMF_EVENT_PDU_SES_REL
,
supi
,
pdu_session_id
,
subscription
);
//Send request to N11 to trigger the notification to the subscribed event
Logger
::
smf_app
().
debug
(
if
(
subscription
.
get
()
!=
nullptr
)
{
//Send request to N11 to trigger the notification to the subscribed event
Logger
::
smf_app
().
debug
(
"Send ITTI msg to SMF N11 to trigger the event notification"
);
std
::
shared_ptr
<
itti_n11_notify_subscribed_event
>
itti_msg
=
std
::
make_shared
std
::
shared_ptr
<
itti_n11_notify_subscribed_event
>
itti_msg
=
std
::
make_shared
<
itti_n11_notify_subscribed_event
>
(
TASK_SMF_APP
,
TASK_SMF_N11
);
event_notification
ev_notif
=
{
};
ev_notif
.
set_pdu_session_id
(
pdu_session_id
);
itti_msg
->
notif_id
=
std
::
to_string
(
subscription
->
sub_id
);
itti_msg
->
event_notifs
.
push_back
(
ev_notif
);
itti_msg
->
http_version
=
http_version
;
event_notification
ev_notif
=
{
};
ev_notif
.
set_pdu_session_id
(
pdu_session_id
);
itti_msg
->
notif_id
=
std
::
to_string
(
subscription
->
sub_id
);
itti_msg
->
event_notifs
.
push_back
(
ev_notif
);
itti_msg
->
http_version
=
http_version
;
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_N11"
,
itti_msg
->
get_msg_name
());
}
}
}
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