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
0880e5dd
Commit
0880e5dd
authored
Jan 03, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for HTTP Response code for SessionManagementSubscriptionData
parent
2fefe070
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
src/api_server/impl/SessionManagementSubscriptionDataApiImpl.cpp
..._server/impl/SessionManagementSubscriptionDataApiImpl.cpp
+7
-3
src/udr_app/udr_app.cpp
src/udr_app/udr_app.cpp
+1
-1
src/udr_app/udr_app.hpp
src/udr_app/udr_app.hpp
+10
-11
No files found.
src/api_server/impl/SessionManagementSubscriptionDataApiImpl.cpp
View file @
0880e5dd
...
...
@@ -44,7 +44,8 @@ SessionManagementSubscriptionDataApiImpl::
SessionManagementSubscriptionDataApiImpl
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
,
udr_app
*
udr_app_inst
,
std
::
string
address
)
:
SessionManagementSubscriptionDataApi
(
rtr
),
m_udr_app
(
udr_app_inst
),
:
SessionManagementSubscriptionDataApi
(
rtr
),
m_udr_app
(
udr_app_inst
),
m_address
(
address
)
{}
void
SessionManagementSubscriptionDataApiImpl
::
query_sm_data
(
...
...
@@ -75,8 +76,11 @@ void SessionManagementSubscriptionDataApiImpl::query_sm_data(
snssai
,
dnn_str
);
code
=
static_cast
<
Pistache
::
Http
::
Code
>
(
http_code
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
Logger
::
udr_server
().
debug
(
"HTTP response code %ld"
,
http_code
);
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
ContentType
>
(
Pistache
::
Http
::
Mime
::
MediaType
(
"application/json"
));
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
// namespace oai::udr::api
}
// namespace oai::udr::api
src/udr_app/udr_app.cpp
View file @
0880e5dd
...
...
@@ -1509,7 +1509,7 @@ void udr_app::handle_query_sdm_subscriptions(const std::string &ue_id,
//------------------------------------------------------------------------------
void
udr_app
::
handle_query_sm_data
(
const
std
::
string
&
ue_id
,
const
std
::
string
&
serving_plmn_id
,
nlohmann
::
json
&
response_data
,
long
code
,
nlohmann
::
json
&
response_data
,
long
&
code
,
oai
::
udr
::
model
::
Snssai
snssai
,
std
::
string
dnn
)
{
MYSQL_RES
*
res
=
nullptr
;
...
...
src/udr_app/udr_app.hpp
View file @
0880e5dd
...
...
@@ -49,7 +49,7 @@ namespace udr {
namespace
app
{
class
udr_app
{
public:
public:
explicit
udr_app
(
const
std
::
string
&
config_file
);
udr_app
(
udr_app
const
&
)
=
delete
;
void
operator
=
(
udr_app
const
&
)
=
delete
;
...
...
@@ -236,7 +236,7 @@ public:
*/
void
handle_query_sm_data
(
const
std
::
string
&
ue_id
,
const
std
::
string
&
serving_plmn_id
,
nlohmann
::
json
&
response_data
,
long
code
,
nlohmann
::
json
&
response_data
,
long
&
code
,
oai
::
udr
::
model
::
Snssai
snssai
=
{},
std
::
string
dnn
=
{});
...
...
@@ -249,11 +249,10 @@ public:
* @param [long code] code: HTTP response code
* @return void
*/
void
handle_create_smf_context_non_3gpp
(
const
std
::
string
&
ue_id
,
const
int32_t
&
pdu_session_id
,
const
SmfRegistration
&
smfRegistration
,
nlohmann
::
json
&
response_data
,
long
&
code
);
void
handle_create_smf_context_non_3gpp
(
const
std
::
string
&
ue_id
,
const
int32_t
&
pdu_session_id
,
const
SmfRegistration
&
smfRegistration
,
nlohmann
::
json
&
response_data
,
long
&
code
);
/*
* Handle a request to delete SMFRegistration (SMFRegistrationDocumentApiImpl)
...
...
@@ -304,12 +303,12 @@ public:
const
std
::
string
&
serving_plmn_id
,
nlohmann
::
json
&
response_data
,
long
&
code
);
private:
private:
MYSQL
mysql
;
};
}
// namespace app
}
// namespace udr
}
// namespace oai
}
// namespace app
}
// namespace udr
}
// namespace oai
#include "udr_config.hpp"
#endif
/* FILE_UDR_APP_HPP_SEEN */
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