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
311784f3
Commit
311784f3
authored
Sep 27, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix N1N2MessageTransfer URI
parent
adb4e5bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/amf-app/amf_config.cpp
src/amf-app/amf_config.cpp
+1
-0
src/sbi/amf_server/amf-http2-server.cpp
src/sbi/amf_server/amf-http2-server.cpp
+2
-4
No files found.
src/amf-app/amf_config.cpp
View file @
311784f3
...
...
@@ -593,6 +593,7 @@ void amf_config::display() {
Logger
::
config
().
info
(
" IP Addr ...............: %s"
,
inet_ntoa
(
n11
.
addr4
));
Logger
::
config
().
info
(
" Port ..................: %d"
,
n11
.
port
);
Logger
::
config
().
info
(
" HTTP2 port ............: %d"
,
sbi_http2_port
);
Logger
::
config
().
info
(
" API version............: %s"
,
sbi_api_version
.
c_str
());
...
...
src/sbi/amf_server/amf-http2-server.cpp
View file @
311784f3
...
...
@@ -53,10 +53,9 @@ void amf_http2_server::start() {
boost
::
system
::
error_code
ec
;
Logger
::
amf_server
().
info
(
"HTTP2 server started"
);
// n1_n2_message_transfer request
// n1_n2_message_transfer request
(URI: /ue-contexts/{}/n1-n2-messages)
server
.
handle
(
NAMF_COMMUNICATION_BASE
+
amf_cfg
.
sbi_api_version
+
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
NAMF_COMMUNICATION_BASE
+
amf_cfg
.
sbi_api_version
+
"/ue-contexts/"
,
[
&
](
const
request
&
request
,
const
response
&
res
)
{
request
.
on_data
([
&
](
const
uint8_t
*
data
,
std
::
size_t
len
)
{
if
(
len
>
0
)
{
...
...
@@ -77,7 +76,6 @@ void amf_http2_server::start() {
res
.
end
();
return
;
}
std
::
string
ue_context_id
=
split_result
[
split_result
.
size
()
-
2
];
Logger
::
amf_server
().
info
(
"ue_context_id %s"
,
ue_context_id
.
c_str
());
...
...
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