Add Cause in Bearer IE (#215)
This commit is contained in:
parent
0e1bd64646
commit
87cdd71582
|
@ -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.presence = 1;
|
||||||
rsp->bearer_contexts_created.eps_bearer_id.u8 = bearer->ebi;
|
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
|
/* TODO : Bearer QoS
|
||||||
* if PCRF changes Bearer QoS, this should be included. */
|
* if PCRF changes Bearer QoS, this should be included. */
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,10 @@ void sgw_s5c_handle_create_session_response(gtp_xact_t *s5c_xact,
|
||||||
ogs_error("No EPS Bearer ID");
|
ogs_error("No EPS Bearer ID");
|
||||||
return;
|
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) {
|
if (rsp->bearer_contexts_created.s5_s8_u_sgw_f_teid.presence == 0) {
|
||||||
ogs_error("No GTP TEID");
|
ogs_error("No GTP TEID");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue