open5gs/lib/diameter
Sukchan Lee 5b8b3124e4 MME: Learn HSS identity from successful S6a answers
Store the Origin-Host and Origin-Realm received in successful AIA and
ULA messages, and use the learned identity for subsequent S6a requests.

Update the learned identity only in the MME event thread to avoid
accessing UE-owned string pointers from freeDiameter callback threads.

Preserve existing hss_map routing behavior by using the learned
host/realm pair only when no hss_map entry is associated with the UE.

Forget the learned identity when:

* DIAMETER_UNABLE_TO_DELIVER or DIAMETER_REALM_NOT_SERVED is received
* DIAMETER_ERROR_USER_UNKNOWN is received
* an MME or SGSN update Cancel-Location-Request is received
* the UE context is removed

Do not invalidate the identity for other 3xxx result codes, such as
DIAMETER_TOO_BUSY, since they do not indicate that the learned identity
is invalid.

Document the learned HSS routing behavior and reference TS 29.272
clause 7.1.6.

Related PR: #4692
2026-07-22 19:02:47 +09:00
..
common diameter: Prevent crash on malformed CER by removing fatal assert 2025-11-30 15:36:33 +09:00
cx [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
gx [SMF] Added Bi-Directional Flow (#2909) 2024-02-17 20:43:15 +01:00
gy [SMF] Initial implementation of Final-Unit-Indication 2024-04-09 07:13:33 +09:00
rx [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
s6a MME: Learn HSS identity from successful S6a answers 2026-07-22 19:02:47 +09:00
s6b [SMF] Setup Gy session when creating UE session over S2b interface 2024-02-28 11:42:33 +00:00
swx [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
meson.build [DIAM] Add Gy interface support to lib/diameter (#1474) 2022-04-08 21:13:02 +09:00