Commit 0de64c70 authored by liuyu's avatar liuyu

json

parent 8e27bcc4
...@@ -190,7 +190,7 @@ int udp_server_coop::udp_read_from_peer_smf() { ...@@ -190,7 +190,7 @@ int udp_server_coop::udp_read_from_peer_smf() {
if (sdPos != std::string::npos) { if (sdPos != std::string::npos) {
snssai.sd = std::stoi(sstsd.substr(sdPos + 3)); snssai.sd = std::stoi(sstsd.substr(sdPos + 3));
} }
std::shared_ptr<upf_graph> graph = {};
if (!sc.get()->find_pdu_session(scf.get()->pdu_session_id, sp)) { if (!sc.get()->find_pdu_session(scf.get()->pdu_session_id, sp)) {
Logger::smf_app().debug("Create a new PDU session"); Logger::smf_app().debug("Create a new PDU session");
...@@ -198,7 +198,9 @@ int udp_server_coop::udp_read_from_peer_smf() { ...@@ -198,7 +198,9 @@ int udp_server_coop::udp_read_from_peer_smf() {
// sp.get()->pdu_session_type.pdu_session_type = smreq->req.get_pdu_session_type(); // sp.get()->pdu_session_type.pdu_session_type = smreq->req.get_pdu_session_type();
sp.get()->set_dnn(dnn); sp.get()->set_dnn(dnn);
sp.get()->set_snssai(snssai); sp.get()->set_snssai(snssai);
sp.get()->set_sessions_graph(graph);
sc.get()->add_pdu_session(scf.get()->pdu_session_id, sp); sc.get()->add_pdu_session(scf.get()->pdu_session_id, sp);
} }
......
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