forked from acouzens/open5gs
WIP: PCRF: use a harded profile as session data
Allow to attach with default bearer without mongodb. No secondary bearer or IMS is supported right now.
This commit is contained in:
parent
4d336cfb47
commit
c4af7f9043
|
@ -507,6 +507,21 @@ out:
|
||||||
int ogs_dbi_session_data(char *supi, ogs_s_nssai_t *s_nssai, char *dnn,
|
int ogs_dbi_session_data(char *supi, ogs_s_nssai_t *s_nssai, char *dnn,
|
||||||
ogs_session_data_t *session_data)
|
ogs_session_data_t *session_data)
|
||||||
{
|
{
|
||||||
return OGS_ERROR;
|
ogs_session_t *session = &session_data->session;
|
||||||
|
ogs_qos_t *qos = &session->qos;
|
||||||
|
|
||||||
|
session->name = ogs_strndup("staticprof", strlen("foobar"));
|
||||||
|
/* check if have to set type */
|
||||||
|
session->ambr.downlink = 300 * 1024 * 1024;
|
||||||
|
session->ambr.uplink = 150 * 1024 * 1024;
|
||||||
|
|
||||||
|
session->qos.index = OGS_QOS_INDEX_5;
|
||||||
|
session->qos.arp.priority_level = 1;
|
||||||
|
session->qos.mbr.downlink = 10;
|
||||||
|
session->qos.mbr.uplink = 10;
|
||||||
|
session->qos.gbr.downlink = 10;
|
||||||
|
session->qos.gbr.uplink = 10;
|
||||||
|
|
||||||
|
return OGS_OK;
|
||||||
}
|
}
|
||||||
#endif /* OGS_DBI_WITH_MONGODB */
|
#endif /* OGS_DBI_WITH_MONGODB */
|
||||||
|
|
Loading…
Reference in New Issue