Potential MT-SMS target nodes in the EPS are the MME/MSC and the SGSN registered at the HSS, while in 5GS MT-SMS target nodes are the 3GPP-SMSF and the Non3GPP-SMSF registered at the UDM. For the role of SMS-Router and IP-SM-GW see TS 23.040.
The HSS queries the EPS-UDR via Ud to read the registered MME/MSC, the registered SGSN, and the UE-not-reachable flags for SMS in MME/MSC, SGSN and UDM.
If the UE-not-reachable flag for SMS in UDM is not set and unless the user is known not to be registered in 5GC, the HSS retrieves the registered SMSF addresses for 3GPP and non-3GPP accesses (if any) from the UDM.
The UDM forwards the retrieved addresses to the HSS if any. If the UE is not reachable for MT-SMS in 5GS for any access type (e.g. there is no SMSF registered for the UE or SMSF registration exists but UE is known not to be reachable in 5GS based on URRP flag), the UDM provides a negative response (Absent Subscriber SM) to the HSS.
If SMS over NAS is not allowed for the user in 5GS based on subscription data, e.g. SMS teleservice is not provisioned or SMS is barred, the UDM indicates in the response to the HSS the corresponding error condition.
The HSS returns the relevant MT-SMS target node addresses registered in HSS and/or UDM to the SMS-GMSC and the procedure is terminated.
Otherwise, if there is no MT-SMS target node address registered in HSS nor in UDM, a negative response (Absent Subscriber SM) is sent to the SMS-GMSC and the procedure continues with steps 8 to 11.
The HSS includes the SMSC address to the Message Waiting Data (MWD) stored in the EPS-UDR and informs the SMSC as defined in TS 23.040. The relevant UE-not-reachable flags are set in the EPS-UDR.
If SMS is not allowed for the user in 5GS according to subscription data as indicated in step 6, steps 9 to 11 are not executed so that the HSS does not subscribe to notifications about reachability for SMS in the UDM, and the procedure is terminated.
The HSS subscribes in UDM to be notified when the UE becomes reachable for SMS (i.e. when the UE gets in radio contact with the AMF while an SMSF actually is registered, or when an SMSF gets registered) by using the Nudm_EE_Subscribe service operation (SUPI, UE Reachability for SMS event) as defined in TS 23.502.
If the UE-not-reachable flag for UDM is set to true, the HSS subscribes to notification on UE-Reachability for SMS at the UDM, using the Nudm_EE_Subscribe service operation as defined in TS 23.502, unless such subscription already exists.
The UDM checks that the UE is registered in an AMF and SMSF for 3GPP and non-3GPP accesses. The UDM then queries the 5GS-UDR to see whether the UE-Reachability event has already been subscribed at the registered AMF(s) (i.e. whether URRP-AMF flag is set).
The UDM queries the 5GS-UDR to see whether any NF (e.g. the HSS) has subscribed to notifications on UE-reachability for SMS events and/or "UE memory available for SMS".
If the HSS has subscribed to UE reachability for SMS notification and/or "UE memory available for SMS", the UDM notifies the HSS as described in TS 23.502.
The UDM updates (clears) the relevant reachability flag. And, if the HSS has been notified in step 5, the UDM also deletes the (one-time) EE-subscriptions of UE reachability for SMS in the 5GS-UDR.
Steps 8 to 11 are skipped if the HSS has not been notified in step 5.
The HSS clears the relevant UE-not-reachable flags and the MCEF flag from the EPS-UDR and removes the SMS-GMSCs from the MWD stored in the EPS-UDR if the notification of "UE memory available" is received.
If the UE-not-reachable flag for UDM is not set and unless the user is known not to be registered in 5GC, the HSS retrieves the registered SMSF addresses for 3GPP and non-3GPP accesses (if any) from the 5GS-UDR.
The HSS returns the relevant MT-SMS target node addresses registered in HSS and/or UDM to the SMS-GMSC and the procedure is terminated.
Otherwise, if there is no MT-SMS target node address registered in HSS nor in UDM, a negative response (Absent Subscriber SM) is sent to the SMS-GMSC and the procedure continues with steps 8 to 11 in figure 5.5.2-1.