mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-02 04:53:37 +00:00
[SMF] Follow-up on #3393
This commit is contained in:
@@ -1201,7 +1201,7 @@ void smf_gsm_state_operational(ogs_fsm_t *s, smf_event_t *e)
|
||||
ogs_expect(r == OGS_OK);
|
||||
ogs_assert(r != OGS_ERROR);
|
||||
} else {
|
||||
ogs_warn("[%s:%d] No PolicyAssociationId. "
|
||||
ogs_warn("[%s:%d] No SDM Subscription. "
|
||||
"Forcibly remove SESSION", smf_ue->supi, sess->psi);
|
||||
r = smf_sbi_discover_and_send(
|
||||
OGS_SBI_SERVICE_TYPE_NUDM_UECM, NULL,
|
||||
|
||||
@@ -781,7 +781,7 @@ bool smf_nsmf_handle_update_sm_context(
|
||||
ogs_expect(r == OGS_OK);
|
||||
ogs_assert(r != OGS_ERROR);
|
||||
} else {
|
||||
ogs_warn("[%s:%d] No PolicyAssociationId. Forcibly remove SESSION",
|
||||
ogs_warn("[%s:%d] No UDM Subscription. Forcibly remove SESSION",
|
||||
smf_ue->supi, sess->psi);
|
||||
r = smf_sbi_discover_and_send(
|
||||
OGS_SBI_SERVICE_TYPE_NUDM_UECM, NULL,
|
||||
@@ -889,7 +889,7 @@ bool smf_nsmf_handle_release_sm_context(
|
||||
ogs_expect(r == OGS_OK);
|
||||
ogs_assert(r != OGS_ERROR);
|
||||
} else {
|
||||
ogs_warn("[%s:%d] No PolicyAssociationId. Forcibly remove SESSION",
|
||||
ogs_warn("[%s:%d] No UDM Subscription. Forcibly remove SESSION",
|
||||
smf_ue->supi, sess->psi);
|
||||
r = smf_sbi_discover_and_send(
|
||||
OGS_SBI_SERVICE_TYPE_NUDM_UECM, NULL,
|
||||
|
||||
@@ -183,6 +183,7 @@ ogs_sbi_request_t *smf_nudm_sdm_build_subscription(
|
||||
(char *)OGS_SBI_RESOURCE_NAME_SDM_SUBSCRIPTIONS;
|
||||
|
||||
memset(&SDMSubscription, 0, sizeof(SDMSubscription));
|
||||
memset(&sNSSAI, 0, sizeof(sNSSAI));
|
||||
|
||||
SDMSubscription.nf_instance_id =
|
||||
NF_INSTANCE_ID(ogs_sbi_self()->nf_instance);
|
||||
@@ -225,7 +226,6 @@ ogs_sbi_request_t *smf_nudm_sdm_build_subscription(
|
||||
SDMSubscription.dnn = sess->session.name;
|
||||
SDMSubscription.plmn_id = ogs_sbi_build_plmn_id(&sess->serving_plmn_id);
|
||||
|
||||
memset(&sNSSAI, 0, sizeof(sNSSAI));
|
||||
sNSSAI.sst = sess->s_nssai.sst;
|
||||
sNSSAI.sd = ogs_s_nssai_sd_to_string(sess->s_nssai.sd);
|
||||
SDMSubscription.single_nssai = &sNSSAI;
|
||||
|
||||
Reference in New Issue
Block a user