Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
3aa1f3c6
Commit
3aa1f3c6
authored
Aug 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue for Handover Notify
parent
94c62c39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+14
-7
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+1
-1
No files found.
src/amf-app/amf_n11.cpp
View file @
3aa1f3c6
...
...
@@ -210,10 +210,13 @@ void amf_n11::handle_itti_message(
Logger
::
amf_n11
().
debug
(
"SMF URI: %s"
,
remote_uri
.
c_str
());
std
::
string
n2SmMsg
=
{};
nlohmann
::
json
pdu_session_update_request
=
{};
if
(
itti_msg
.
is_n2sm_set
)
{
pdu_session_update_request
[
"n2SmInfoType"
]
=
itti_msg
.
n2sm_info_type
;
pdu_session_update_request
[
"n2SmInfo"
][
"contentId"
]
=
"n2msg"
;
octet_stream_2_hex_stream
(
(
uint8_t
*
)
bdata
(
itti_msg
.
n2sm
),
blength
(
itti_msg
.
n2sm
),
n2SmMsg
);
}
// For N2 HO
...
...
@@ -227,10 +230,6 @@ void amf_n11::handle_itti_message(
std
::
string
json_part
=
pdu_session_update_request
.
dump
();
std
::
string
n2SmMsg
=
{};
octet_stream_2_hex_stream
(
(
uint8_t
*
)
bdata
(
itti_msg
.
n2sm
),
blength
(
itti_msg
.
n2sm
),
n2SmMsg
);
curl_http_client
(
remote_uri
,
json_part
,
""
,
n2SmMsg
,
supi
,
itti_msg
.
pdu_session_id
,
itti_msg
.
promise_id
);
...
...
@@ -519,6 +518,7 @@ void amf_n11::curl_http_client(
mime_parser
parser
=
{};
std
::
string
body
=
{};
std
::
shared_ptr
<
pdu_session_context
>
psc
=
{};
bool
is_multipart
=
true
;
if
(
!
amf_app_inst
->
find_pdu_session_context
(
supi
,
pdu_session_id
,
psc
))
{
Logger
::
amf_n11
().
warn
(
...
...
@@ -540,6 +540,9 @@ void amf_n11::curl_http_client(
parser
.
create_multipart_related_content
(
body
,
jsonData
,
CURL_MIME_BOUNDARY
,
n2SmMsg
,
multipart_related_content_part_e
::
NGAP
);
}
else
{
body
=
jsonData
;
is_multipart
=
false
;
}
Logger
::
amf_n11
().
debug
(
...
...
@@ -556,9 +559,13 @@ void amf_n11::curl_http_client(
if
(
curl
)
{
CURLcode
res
=
{};
struct
curl_slist
*
headers
=
nullptr
;
std
::
string
content_type
=
"content-type: multipart/related; boundary="
+
std
::
string
(
CURL_MIME_BOUNDARY
);
std
::
string
content_type
=
{};
if
(
is_multipart
)
{
content_type
=
"content-type: multipart/related; boundary="
+
std
::
string
(
CURL_MIME_BOUNDARY
);
}
else
{
content_type
=
"content-type: application/json"
;
}
headers
=
curl_slist_append
(
headers
,
content_type
.
c_str
());
curl_easy_setopt
(
curl
,
CURLOPT_HTTPHEADER
,
headers
);
curl_easy_setopt
(
curl
,
CURLOPT_URL
,
remoteUri
.
c_str
());
...
...
src/amf-app/amf_n2.cpp
View file @
3aa1f3c6
...
...
@@ -1638,7 +1638,7 @@ void amf_n2::handle_itti_message(itti_handover_notify& itti_msg) {
}
gc
=
assoc_id_2_gnb_context
(
itti_msg
.
assoc_id
);
Logger
::
amf_n2
().
debug
(
"Handover
Required
, gNB info (gNB Name: %s, globalRanNodeId %ld)"
,
"Handover
Notify
, gNB info (gNB Name: %s, globalRanNodeId %ld)"
,
gc
.
get
()
->
gnb_name
.
c_str
(),
gc
.
get
()
->
globalRanNodeId
);
std
::
shared_ptr
<
ue_ngap_context
>
unc
=
{};
...
...
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