mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-02 21:13:40 +00:00
In the previous implementation, the AMF would send a Partial-handover error indication whenever it encountered a session not found in the subscriber DB, even if valid sessions remained. This resulted in unexpected error responses during NG handover. To resolve this, we record the initial SMF transaction count before iterating through the UE session list. Sessions without a valid SMF context now produce a warning and are skipped, while continuing to send Handover Notify messages for provisioned sessions. After processing, we compare the SMF transaction count to the initial value. If no valid sessions were handled, we send a Partial-handover error indication. With this change, unprovisioned sessions no longer trigger a premature error indication, allowing valid PDU sessions to complete NG handover successfully.