Add Cause in Bearer IE (#215)

This commit is contained in:
Sukchan Lee 2019-07-08 23:08:15 +09:00
parent 0e1bd64646
commit 87cdd71582
2 changed files with 9 additions and 0 deletions

View File

@ -114,6 +114,11 @@ int pgw_s5c_build_create_session_response(
rsp->bearer_contexts_created.eps_bearer_id.presence = 1;
rsp->bearer_contexts_created.eps_bearer_id.u8 = bearer->ebi;
/* Bearer Cause */
rsp->bearer_contexts_created.cause.presence = 1;
rsp->bearer_contexts_created.cause.len = sizeof(cause);
rsp->bearer_contexts_created.cause.data = &cause;
/* TODO : Bearer QoS
* if PCRF changes Bearer QoS, this should be included. */

View File

@ -70,6 +70,10 @@ void sgw_s5c_handle_create_session_response(gtp_xact_t *s5c_xact,
ogs_error("No EPS Bearer ID");
return;
}
if (rsp->bearer_contexts_created.cause.presence == 0) {
ogs_error("No EPS Bearer Cause");
return;
}
if (rsp->bearer_contexts_created.s5_s8_u_sgw_f_teid.presence == 0) {
ogs_error("No GTP TEID");
return;