[SMF] s/'Context not found'/'Non-existent'/ in {Update,Delete}PdpContextResponse (#1379)
TS 29.060 sections 7.3.4 and 7.3.6 specify the possible cause values for UpdatePdpContextResponse and DeletePdpContextResponse. Together with section 8.2, it becomes clear that 'Non-existent' cause should be sent instead of 'Context not found' one in those cases.
This commit is contained in:
parent
e3fa731c4a
commit
b7698810ac
|
@ -271,7 +271,7 @@ void smf_gn_handle_delete_pdp_context_request(
|
|||
|
||||
if (!sess) {
|
||||
ogs_warn("No Context");
|
||||
cause_value = OGS_GTP1_CAUSE_CONTEXT_NOT_FOUND;
|
||||
cause_value = OGS_GTP1_CAUSE_NON_EXISTENT;
|
||||
} else {
|
||||
if (!ogs_diam_app_connected(OGS_DIAM_GX_APPLICATION_ID)) {
|
||||
ogs_error("No Gx Diameter Peer");
|
||||
|
@ -331,7 +331,7 @@ void smf_gn_handle_update_pdp_context_request(
|
|||
|
||||
if (!sess) {
|
||||
ogs_warn("No Context");
|
||||
cause_value = OGS_GTP1_CAUSE_CONTEXT_NOT_FOUND;
|
||||
cause_value = OGS_GTP1_CAUSE_NON_EXISTENT;
|
||||
}
|
||||
|
||||
if (cause_value != OGS_GTP1_CAUSE_REQUEST_ACCEPTED) {
|
||||
|
@ -355,7 +355,7 @@ void smf_gn_handle_update_pdp_context_request(
|
|||
ogs_warn("No bearer");
|
||||
ogs_gtp1_send_error_message(xact, sess->sgw_s5c_teid,
|
||||
OGS_GTP1_UPDATE_PDP_CONTEXT_RESPONSE_TYPE,
|
||||
OGS_GTP1_CAUSE_CONTEXT_NOT_FOUND);
|
||||
OGS_GTP1_CAUSE_NON_EXISTENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1140,7 +1140,7 @@ void smf_epc_n4_handle_session_deletion_response(
|
|||
if (!sess) {
|
||||
ogs_warn("No Context");
|
||||
cause_value = (gtp_version == 1) ?
|
||||
OGS_GTP1_CAUSE_CONTEXT_NOT_FOUND :
|
||||
OGS_GTP1_CAUSE_NON_EXISTENT :
|
||||
OGS_GTP_CAUSE_CONTEXT_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue