[SMF] Don't abort session tear-down on PCF error

This commit is contained in:
mitmitmitm 2023-07-11 08:46:55 +02:00 committed by Sukchan Lee
parent 6273ca5c43
commit c43444233b
1 changed files with 4 additions and 7 deletions

View File

@ -940,15 +940,12 @@ void smf_gsm_state_operational(ogs_fsm_t *s, smf_event_t *e)
CASE(OGS_SBI_RESOURCE_NAME_DELETE) CASE(OGS_SBI_RESOURCE_NAME_DELETE)
if (sbi_message->res_status != if (sbi_message->res_status !=
OGS_SBI_HTTP_STATUS_NO_CONTENT) { OGS_SBI_HTTP_STATUS_NO_CONTENT) {
strerror = ogs_msprintf( ogs_error("[%s:%d] HTTP response error [%d]",
"[%s:%d] HTTP response error [%d]",
smf_ue->supi, sess->psi, smf_ue->supi, sess->psi,
sbi_message->res_status); sbi_message->res_status);
ogs_assert(strerror); /* In spite of error from PCF, continue with
ogs_error("%s", strerror); session teardown, so as to not leave stale
ogs_free(strerror); sessions. */
OGS_FSM_TRAN(s, smf_gsm_state_exception);
break;
} }
if (state == OGS_PFCP_DELETE_TRIGGER_SMF_INITIATED) { if (state == OGS_PFCP_DELETE_TRIGGER_SMF_INITIATED) {