Commit 6085c2b1 authored by liuyu's avatar liuyu

context

parent 0304b108
......@@ -4998,14 +4998,14 @@ void smf_context::send_pdu_session_create_response(
udpsmfcontext["pdu_session_id"] = resp->res.get_pdu_session_id();
udpsmfcontext["dnn"] = resp->res.get_dnn();
udpsmfcontext["snssai"] = resp->res.get_snssai().toString();
udpsmfcontext["pdu_session_type"] = 0;
udpsmfcontext["pdu_session_type"] = 1;
supi64_t supi64 = smf_supi_to_u64(resp->res.get_supi());
std::shared_ptr<smf_context> sc = {};
sc = smf_app_inst->supi_2_smf_context(supi64);
std::shared_ptr<smf_pdu_session> sp = {};
sc.get()->find_pdu_session(resp->res.get_pdu_session_id(), sp);
udpsmfcontext["seid"] = sp.get()->seid;
udpsmfcontext["up_fseid"] = sp.get()->up_fseid.seid;
UdpSend_smf(udpsmfcontext,"10.103.239.31", 20023);
// json_data["smfcontext"] = udpsmfcontext.dump();
......
......@@ -212,8 +212,13 @@ int udp_server_coop::udp_read_from_peer_smf() {
sp.get()->set_sessions_graph(graph);
uint64_t seid = smf_app_inst->generate_seid();
sp->set_seid(seid);
sp->up_fseid.seid = smfcontext["up_fseid"];
sp->set_seid(smfcontext["seid"]);
// sp->set_seid(smfcontext["seid"]);
// for finding procedure when receiving response
smf_app_inst->set_seid_2_smf_context(sp.get()->seid, sc);
......
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