Commit 52523953 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Update function name

parent 305ad2b9
...@@ -49,8 +49,8 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp( ...@@ -49,8 +49,8 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(
Pistache::Http::ResponseWriter &response) { Pistache::Http::ResponseWriter &response) {
nlohmann::json response_data = {}; nlohmann::json response_data = {};
Pistache::Http::Code code = {}; Pistache::Http::Code code = {};
m_udr_app->handle_amf_3gpp_access_registration_document_create_amf_context( m_udr_app->handle_create_amf_context_3gpp(ueId, amf3GppAccessRegistration,
ueId, amf3GppAccessRegistration, response_data, code); response_data, code);
Logger::udr_server().debug("HTTP reponse code %d.\n", code); Logger::udr_server().debug("HTTP reponse code %d.\n", code);
response.send(code, response_data.dump()); response.send(code, response_data.dump());
...@@ -62,8 +62,7 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp( ...@@ -62,8 +62,7 @@ void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(
Pistache::Http::ResponseWriter &response) { Pistache::Http::ResponseWriter &response) {
nlohmann::json response_data = {}; nlohmann::json response_data = {};
Pistache::Http::Code code = {}; Pistache::Http::Code code = {};
m_udr_app->handle_amf_3gpp_access_registration_document_query_amf_context( m_udr_app->handle_query_amf_context_3gpp(ueId, response_data, code);
ueId, response_data, code);
Logger::udr_server().debug("HTTP reponse code %d.\n", code); Logger::udr_server().debug("HTTP reponse code %d.\n", code);
response.send(code, response_data.dump()); response.send(code, response_data.dump());
......
...@@ -41,8 +41,7 @@ void AccessAndMobilitySubscriptionDataDocumentApiImpl::query_am_data( ...@@ -41,8 +41,7 @@ void AccessAndMobilitySubscriptionDataDocumentApiImpl::query_am_data(
Pistache::Http::ResponseWriter &response) { Pistache::Http::ResponseWriter &response) {
nlohmann::json response_data = {}; nlohmann::json response_data = {};
Pistache::Http::Code code = {}; Pistache::Http::Code code = {};
m_udr_app->handle_access_mobility_subscription_data_document( m_udr_app->handle_query_am_data(ueId, servingPlmnId, response_data, code);
ueId, servingPlmnId, response_data, code);
Logger::udr_server().debug("HTTP reponse code %d.\n", code); Logger::udr_server().debug("HTTP reponse code %d.\n", code);
response.send(code, response_data.dump()); response.send(code, response_data.dump());
......
...@@ -82,9 +82,10 @@ udr_app::udr_app(const std::string &config_file) { ...@@ -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..."); } udr_app::~udr_app() { Logger::udr_app().debug("Delete UDM APP instance..."); }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void udr_app::handle_access_mobility_subscription_data_document( void udr_app::handle_query_am_data(const std::string &ue_id,
const std::string &ue_id, const std::string &serving_plmn_id, const std::string &serving_plmn_id,
nlohmann::json &response_data, Pistache::Http::Code &code) { nlohmann::json &response_data,
Pistache::Http::Code &code) {
MYSQL_RES *res = nullptr; MYSQL_RES *res = nullptr;
MYSQL_ROW row = {}; MYSQL_ROW row = {};
MYSQL_FIELD *field = nullptr; MYSQL_FIELD *field = nullptr;
...@@ -345,7 +346,8 @@ void udr_app::handle_access_mobility_subscription_data_document( ...@@ -345,7 +346,8 @@ void udr_app::handle_access_mobility_subscription_data_document(
code = Pistache::Http::Code::Ok; code = Pistache::Http::Code::Ok;
Logger::udr_server().debug( Logger::udr_server().debug(
"AccessAndMobilitySubscriptionData GET - json:\n\"%s\"", j.dump().c_str()); "AccessAndMobilitySubscriptionData GET - json:\n\"%s\"",
j.dump().c_str());
} else { } else {
Logger::udr_server().error("AccessAndMobilitySubscriptionData no data!"); Logger::udr_server().error("AccessAndMobilitySubscriptionData no data!");
code = Pistache::Http::Code::Internal_Server_Error; code = Pistache::Http::Code::Internal_Server_Error;
...@@ -355,7 +357,7 @@ void udr_app::handle_access_mobility_subscription_data_document( ...@@ -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, const std::string &ue_id,
Amf3GppAccessRegistration &amf3GppAccessRegistration, Amf3GppAccessRegistration &amf3GppAccessRegistration,
nlohmann::json &response_data, Pistache::Http::Code &code) { nlohmann::json &response_data, Pistache::Http::Code &code) {
...@@ -596,9 +598,9 @@ void udr_app::handle_amf_3gpp_access_registration_document_create_amf_context( ...@@ -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( void udr_app::handle_query_amf_context_3gpp(const std::string &ue_id,
const std::string &ue_id, nlohmann::json &response_data, nlohmann::json &response_data,
Pistache::Http::Code &code) { Pistache::Http::Code &code) {
MYSQL_RES *res = NULL; MYSQL_RES *res = NULL;
MYSQL_ROW row; MYSQL_ROW row;
MYSQL_FIELD *field = nullptr; MYSQL_FIELD *field = nullptr;
......
...@@ -59,17 +59,18 @@ class udr_app { ...@@ -59,17 +59,18 @@ class udr_app {
virtual ~udr_app(); virtual ~udr_app();
void handle_access_mobility_subscription_data_document( void handle_query_am_data(const std::string& ue_id,
const std::string& ue_id, const std::string& serving_plmn_id, const std::string& serving_plmn_id,
nlohmann::json& response_data, Pistache::Http::Code& code); nlohmann::json& response_data,
void handle_amf_3gpp_access_registration_document_create_amf_context( Pistache::Http::Code& code);
void handle_create_amf_context_3gpp(
const std::string& ue_id, const std::string& ue_id,
Amf3GppAccessRegistration& amf3GppAccessRegistration, Amf3GppAccessRegistration& amf3GppAccessRegistration,
nlohmann::json& response_data, Pistache::Http::Code& code); nlohmann::json& response_data, Pistache::Http::Code& code);
void handle_amf_3gpp_access_registration_document_query_amf_context( void handle_query_amf_context_3gpp(const std::string& ue_id,
const std::string& ue_id, nlohmann::json& response_data, nlohmann::json& response_data,
Pistache::Http::Code& code); Pistache::Http::Code& code);
void handle_create_authentication_status(const std::string& ue_id, void handle_create_authentication_status(const std::string& ue_id,
const AuthEvent& authEvent, const AuthEvent& authEvent,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment