Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDR
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-UDR
Commits
52523953
Commit
52523953
authored
Jun 23, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update function name
parent
305ad2b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
21 deletions
+22
-21
src/api_server/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
..._server/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
+3
-4
src/api_server/impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
...impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
+1
-2
src/udr_app/udr_app.cpp
src/udr_app/udr_app.cpp
+10
-8
src/udr_app/udr_app.hpp
src/udr_app/udr_app.hpp
+8
-7
No files found.
src/api_server/impl/AMF3GPPAccessRegistrationDocumentApiImpl.cpp
View file @
52523953
...
...
@@ -49,8 +49,8 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(
Pistache
::
Http
::
ResponseWriter
&
response
)
{
nlohmann
::
json
response_data
=
{};
Pistache
::
Http
::
Code
code
=
{};
m_udr_app
->
handle_
amf_3gpp_access_registration_document_create_amf_context
(
ueId
,
amf3GppAccessRegistration
,
response_data
,
code
);
m_udr_app
->
handle_
create_amf_context_3gpp
(
ueId
,
amf3GppAccessRegistration
,
response_data
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP reponse code %d.
\n
"
,
code
);
response
.
send
(
code
,
response_data
.
dump
());
...
...
@@ -62,8 +62,7 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(
Pistache
::
Http
::
ResponseWriter
&
response
)
{
nlohmann
::
json
response_data
=
{};
Pistache
::
Http
::
Code
code
=
{};
m_udr_app
->
handle_amf_3gpp_access_registration_document_query_amf_context
(
ueId
,
response_data
,
code
);
m_udr_app
->
handle_query_amf_context_3gpp
(
ueId
,
response_data
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP reponse code %d.
\n
"
,
code
);
response
.
send
(
code
,
response_data
.
dump
());
...
...
src/api_server/impl/AccessAndMobilitySubscriptionDataDocumentApiImpl.cpp
View file @
52523953
...
...
@@ -41,8 +41,7 @@ void AccessAndMobilitySubscriptionDataDocumentApiImpl::query_am_data(
Pistache
::
Http
::
ResponseWriter
&
response
)
{
nlohmann
::
json
response_data
=
{};
Pistache
::
Http
::
Code
code
=
{};
m_udr_app
->
handle_access_mobility_subscription_data_document
(
ueId
,
servingPlmnId
,
response_data
,
code
);
m_udr_app
->
handle_query_am_data
(
ueId
,
servingPlmnId
,
response_data
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP reponse code %d.
\n
"
,
code
);
response
.
send
(
code
,
response_data
.
dump
());
...
...
src/udr_app/udr_app.cpp
View file @
52523953
...
...
@@ -82,9 +82,10 @@ udr_app::udr_app(const std::string &config_file) {
udr_app
::~
udr_app
()
{
Logger
::
udr_app
().
debug
(
"Delete UDM APP instance..."
);
}
//------------------------------------------------------------------------------
void
udr_app
::
handle_access_mobility_subscription_data_document
(
const
std
::
string
&
ue_id
,
const
std
::
string
&
serving_plmn_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
)
{
void
udr_app
::
handle_query_am_data
(
const
std
::
string
&
ue_id
,
const
std
::
string
&
serving_plmn_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
)
{
MYSQL_RES
*
res
=
nullptr
;
MYSQL_ROW
row
=
{};
MYSQL_FIELD
*
field
=
nullptr
;
...
...
@@ -345,7 +346,8 @@ void udr_app::handle_access_mobility_subscription_data_document(
code
=
Pistache
::
Http
::
Code
::
Ok
;
Logger
::
udr_server
().
debug
(
"AccessAndMobilitySubscriptionData GET - json:
\n\"
%s
\"
"
,
j
.
dump
().
c_str
());
"AccessAndMobilitySubscriptionData GET - json:
\n\"
%s
\"
"
,
j
.
dump
().
c_str
());
}
else
{
Logger
::
udr_server
().
error
(
"AccessAndMobilitySubscriptionData no data!"
);
code
=
Pistache
::
Http
::
Code
::
Internal_Server_Error
;
...
...
@@ -355,7 +357,7 @@ void udr_app::handle_access_mobility_subscription_data_document(
}
//------------------------------------------------------------------------------
void
udr_app
::
handle_
amf_3gpp_access_registration_document_create_amf_context
(
void
udr_app
::
handle_
create_amf_context_3gpp
(
const
std
::
string
&
ue_id
,
Amf3GppAccessRegistration
&
amf3GppAccessRegistration
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
)
{
...
...
@@ -596,9 +598,9 @@ void udr_app::handle_amf_3gpp_access_registration_document_create_amf_context(
}
//------------------------------------------------------------------------------
void
udr_app
::
handle_
amf_3gpp_access_registration_document_query_amf_context
(
const
std
::
string
&
ue_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
)
{
void
udr_app
::
handle_
query_amf_context_3gpp
(
const
std
::
string
&
ue_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
)
{
MYSQL_RES
*
res
=
NULL
;
MYSQL_ROW
row
;
MYSQL_FIELD
*
field
=
nullptr
;
...
...
src/udr_app/udr_app.hpp
View file @
52523953
...
...
@@ -59,17 +59,18 @@ class udr_app {
virtual
~
udr_app
();
void
handle_access_mobility_subscription_data_document
(
const
std
::
string
&
ue_id
,
const
std
::
string
&
serving_plmn_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
);
void
handle_amf_3gpp_access_registration_document_create_amf_context
(
void
handle_query_am_data
(
const
std
::
string
&
ue_id
,
const
std
::
string
&
serving_plmn_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
);
void
handle_create_amf_context_3gpp
(
const
std
::
string
&
ue_id
,
Amf3GppAccessRegistration
&
amf3GppAccessRegistration
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
);
void
handle_
amf_3gpp_access_registration_document_query_amf_context
(
const
std
::
string
&
ue_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
);
void
handle_
query_amf_context_3gpp
(
const
std
::
string
&
ue_id
,
nlohmann
::
json
&
response_data
,
Pistache
::
Http
::
Code
&
code
);
void
handle_create_authentication_status
(
const
std
::
string
&
ue_id
,
const
AuthEvent
&
authEvent
,
...
...
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