mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 03:19:31 +00:00
mirror of https://github.com/open5gs/open5gs link from https://open5gs.org/
https://open5gs.org
This patch introduces assoc_id[] to ogs_sbi_xact_t and stores a snapshot of the RAN-UE ID (AMF_ASSOC_RAN_UE_ID) when the AMF sends SBI requests to SMF/PCF. Since the RAN-NG context may change (e.g., during NG Context release or RRC re-establishment) before the asynchronous SBI response arrives, relying on sess->ran_ue_id can lead to incorrect context resolution. The transaction-level snapshot ensures that AMF uses the correct RAN-UE when handling SBI responses. Key changes: - Added assoc_id[] array to ogs_sbi_xact_t. - Stored RAN-UE snapshot for SBI Client operations. - Updated AMF handlers (amf-sm, nsmf-handler, nnssf-handler, nnrf-handler, sbi-path) to use xact->assoc_id[] instead of sess->ran_ue_id for SBI Client responses. - Updated NAMF handlers to continue using sess->ran_ue_id since they operate in SBI Server mode and have no transaction snapshot. - Refactored function signatures to pass amf_ue and ran_ue explicitly. - Added detailed comments to sess->ran_ue_id explaining the distinction between SBI Client and SBI Server behavior. - Updated test cases and added the new issues4174 test. This resolves the race where RAN-UE context changes between SBI request and response, ensuring correct session processing and eliminating RAN-UE lookup failures during asynchronous callbacks. Issues #4174 |
||
|---|---|---|
| .github | ||
| configs | ||
| debian | ||
| docker | ||
| docs | ||
| lib | ||
| misc | ||
| src | ||
| subprojects | ||
| tests | ||
| vagrant | ||
| webui | ||
| .clang-tidy | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitignore | ||
| LICENSE | ||
| meson.build | ||
| meson_options.txt | ||
| README.md | ||
Getting Started
Please follow the documentation at open5gs.org!
Sponsors
If you find Open5GS useful for work, please consider supporting this Open Source project by Becoming a sponsor. To manage the funding transactions transparently, you can donate through OpenCollective.
Special Sponsor
Community
- Problem with Open5GS can be filed as issues in this repository.
- Other topics related to this project are happening on the discussions.
- Voice and text chat are available in Open5GS's Discord workspace. Use this link to get started.
Contributing
If you're contributing through a pull request to Open5GS project on GitHub, please read the Contributor License Agreement in advance.
License
- Open5GS Open Source files are made available under the terms of the GNU Affero General Public License (GNU AGPL v3.0).
- Commercial licenses are also available from NewPlane at sales@newplane.io.
Support
Technical support and customized services for Open5GS are provided by NewPlane at support@newplane.io.
