forked from acouzens/open5gs
Compare commits
10 Commits
ea404f39dc
...
79afb3a7f7
Author | SHA1 | Date |
---|---|---|
Oliver Smith | 79afb3a7f7 | |
Oliver Smith | a28eafd686 | |
Oliver Smith | 458cc96834 | |
Daniel Willmann | d006b6e94e | |
Oliver Smith | c8728d4f8d | |
Alexander Couzens | b721743f6a | |
Daniel Willmann | 7f5764cadc | |
Alexander Couzens | 8cca47f0a6 | |
Alexander Couzens | 7476b7e22b | |
Alexander Couzens | 2f2161c5c3 |
|
@ -1,4 +1,57 @@
|
||||||
db_uri: mongodb://localhost/open5gs
|
db_uri: mongodb://localhost/open5gs
|
||||||
|
db_json:
|
||||||
|
default:
|
||||||
|
af:
|
||||||
|
ambr:
|
||||||
|
up: 10000
|
||||||
|
down: 10000
|
||||||
|
gmbr:
|
||||||
|
up: 1000
|
||||||
|
down: 1000
|
||||||
|
qci: 4
|
||||||
|
normal:
|
||||||
|
ambr:
|
||||||
|
up: 10000
|
||||||
|
down: 10000
|
||||||
|
gmbr:
|
||||||
|
up: 10000
|
||||||
|
down: 10000
|
||||||
|
qci: 5
|
||||||
|
charging_profiles:
|
||||||
|
af:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 3
|
||||||
|
- 4
|
||||||
|
normal:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 3
|
||||||
|
- 4
|
||||||
|
dir:
|
||||||
|
normal: "/tmp/profiles"
|
||||||
|
af: "/tmp/profiles_af"
|
||||||
|
#
|
||||||
|
# o Set OGS_LOG_INFO to all domain level
|
||||||
|
# - If `level` is omitted, the default level is OGS_LOG_INFO)
|
||||||
|
# - If `domain` is omitted, the all domain level is set from 'level'
|
||||||
|
# (Default values are used, so no configuration is required)
|
||||||
|
#
|
||||||
|
# o Set OGS_LOG_ERROR to all domain level
|
||||||
|
# - `level` can be set with none, fatal, error, warn, info, debug, trace
|
||||||
|
# logger:
|
||||||
|
# level: error
|
||||||
|
#
|
||||||
|
# o Set OGS_LOG_DEBUG to mme/emm domain level
|
||||||
|
# logger:
|
||||||
|
# level: debug
|
||||||
|
# domain: mme,emm
|
||||||
|
#
|
||||||
|
# o Set OGS_LOG_TRACE to all domain level
|
||||||
|
# logger:
|
||||||
|
# level: trace
|
||||||
|
# domain: core,sbi,ausf,event,tlv,mem,sock
|
||||||
|
#
|
||||||
logger:
|
logger:
|
||||||
file:
|
file:
|
||||||
path: @localstatedir@/log/open5gs/pcrf.log
|
path: @localstatedir@/log/open5gs/pcrf.log
|
||||||
|
|
|
@ -1,3 +1,22 @@
|
||||||
|
open5gs (2.7.0~sysmocom3) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Rebase on open5gs.git main of 2024-04-18
|
||||||
|
|
||||||
|
-- Oliver Smith <osmith@sysmocom.de> Thu, 18 Apr 2024 15:22:28 +0200
|
||||||
|
|
||||||
|
open5gs (2.7.0~sysmocom2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Rebase on open5gs.git main of 2024-04-09
|
||||||
|
|
||||||
|
-- Oliver Smith <osmith@sysmocom.de> Tue, 09 Apr 2024 14:05:56 +0200
|
||||||
|
|
||||||
|
open5gs (2.7.0sysmocom1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Remove mongodb dependency
|
||||||
|
* Use default APN if none could be found
|
||||||
|
|
||||||
|
-- Daniel Willmann <dwillmann@sysmocom.de> Mon, 29 Jan 2024 20:17:10 +0100
|
||||||
|
|
||||||
open5gs (2.7.0) unstable; urgency=medium
|
open5gs (2.7.0) unstable; urgency=medium
|
||||||
|
|
||||||
* 5G Roaming with SEPP
|
* 5G Roaming with SEPP
|
||||||
|
|
|
@ -14,7 +14,6 @@ Build-Depends: debhelper (>= 11),
|
||||||
libgcrypt-dev,
|
libgcrypt-dev,
|
||||||
libssl-dev,
|
libssl-dev,
|
||||||
libidn11-dev,
|
libidn11-dev,
|
||||||
libmongoc-dev,
|
|
||||||
libbson-dev,
|
libbson-dev,
|
||||||
libsctp-dev,
|
libsctp-dev,
|
||||||
libyaml-dev,
|
libyaml-dev,
|
||||||
|
@ -121,29 +120,11 @@ Description: UPF (User Plane Function)
|
||||||
.
|
.
|
||||||
This package provides the UPF (User Plane Function)
|
This package provides the UPF (User Plane Function)
|
||||||
|
|
||||||
Package: open5gs-hss
|
|
||||||
Architecture: any
|
|
||||||
Multi-Arch: same
|
|
||||||
Depends: ${shlibs:Depends},
|
|
||||||
${misc:Depends},
|
|
||||||
mongodb-org | mongodb,
|
|
||||||
open5gs-common (= ${binary:Version})
|
|
||||||
Description: HSS (Home Subscriber Server)
|
|
||||||
Open5GS is a C-language implementation of 5G Core and EPC
|
|
||||||
Packet Core, i.e. the core network of an NR/LTE network (Release-17)
|
|
||||||
.
|
|
||||||
This package provides the HSS (Home Subscriber Server) element of the
|
|
||||||
EPC, i.e. the central database of mobile network subscribers, with
|
|
||||||
their IMSI, MSISDN, cryptographic key materials, service subscription
|
|
||||||
information, etc. It implements the S6a interface towards the MME
|
|
||||||
using the DIAMETER protocol.
|
|
||||||
|
|
||||||
Package: open5gs-pcrf
|
Package: open5gs-pcrf
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Depends: ${shlibs:Depends},
|
Depends: ${shlibs:Depends},
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
mongodb-org | mongodb,
|
|
||||||
open5gs-common (= ${binary:Version})
|
open5gs-common (= ${binary:Version})
|
||||||
Description: PCRF (Policy and Charging Rules Function)
|
Description: PCRF (Policy and Charging Rules Function)
|
||||||
Open5GS is a C-language implementation of 5G Core and EPC
|
Open5GS is a C-language implementation of 5G Core and EPC
|
||||||
|
@ -273,7 +254,6 @@ Depends: ${misc:Depends},
|
||||||
open5gs-amf (= ${binary:Version}),
|
open5gs-amf (= ${binary:Version}),
|
||||||
open5gs-sgwu (= ${binary:Version}),
|
open5gs-sgwu (= ${binary:Version}),
|
||||||
open5gs-upf (= ${binary:Version}),
|
open5gs-upf (= ${binary:Version}),
|
||||||
open5gs-hss (= ${binary:Version}),
|
|
||||||
open5gs-pcrf (= ${binary:Version}),
|
open5gs-pcrf (= ${binary:Version}),
|
||||||
open5gs-nrf (= ${binary:Version}),
|
open5gs-nrf (= ${binary:Version}),
|
||||||
open5gs-scp (= ${binary:Version}),
|
open5gs-scp (= ${binary:Version}),
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
usr/bin/open5gs-hssd
|
|
||||||
configs/freeDiameter/hss.* etc/freeDiameter
|
|
||||||
configs/open5gs/hss.yaml etc/open5gs
|
|
||||||
configs/open5gs/tls/hss.key etc/open5gs/tls
|
|
||||||
configs/open5gs/tls/hss.crt etc/open5gs/tls
|
|
||||||
configs/systemd/open5gs-hssd.service lib/systemd/system
|
|
|
@ -25,9 +25,6 @@ libdbi_sources = files('''
|
||||||
session.c
|
session.c
|
||||||
ims.c
|
ims.c
|
||||||
'''.split())
|
'''.split())
|
||||||
|
|
||||||
libmongoc_dep = dependency('libmongoc-1.0')
|
|
||||||
|
|
||||||
libdbi_inc = include_directories('.')
|
libdbi_inc = include_directories('.')
|
||||||
|
|
||||||
libdbi = library('ogsdbi',
|
libdbi = library('ogsdbi',
|
||||||
|
@ -35,10 +32,10 @@ libdbi = library('ogsdbi',
|
||||||
version : libogslib_version,
|
version : libogslib_version,
|
||||||
c_args : '-DOGS_DBI_COMPILATION',
|
c_args : '-DOGS_DBI_COMPILATION',
|
||||||
include_directories : [libdbi_inc, libinc],
|
include_directories : [libdbi_inc, libinc],
|
||||||
dependencies : [libproto_dep, libmongoc_dep],
|
dependencies : [libproto_dep],
|
||||||
install : true)
|
install : true)
|
||||||
|
|
||||||
libdbi_dep = declare_dependency(
|
libdbi_dep = declare_dependency(
|
||||||
link_with : libdbi,
|
link_with : libdbi,
|
||||||
include_directories : [libdbi_inc, libinc],
|
include_directories : [libdbi_inc, libinc],
|
||||||
dependencies : [libproto_dep, libmongoc_dep])
|
dependencies : [libproto_dep])
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019-2022 by Sukchan Lee <acetcom@gmail.com>
|
||||||
|
*
|
||||||
|
* This file is part of Open5GS.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef MESON_DUMMY_H
|
||||||
|
#define MESON_DUMMY_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct dummy_bson;
|
||||||
|
typedef struct dummy_bson bson_t;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* MESON_DUMMY_H */
|
|
@ -24,6 +24,9 @@
|
||||||
#ifndef OGS_MONGOC_H
|
#ifndef OGS_MONGOC_H
|
||||||
#define OGS_MONGOC_H
|
#define OGS_MONGOC_H
|
||||||
|
|
||||||
|
/* STUB to disable building with mongodb (OS#6215) */
|
||||||
|
#define MONGOC_CHECK_VERSION(a, b, c) false
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
|
@ -510,6 +510,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 */
|
||||||
|
|
|
@ -34,7 +34,9 @@ version_conf.set_quoted('OPEN5GS_VERSION', package_version)
|
||||||
configure_file(output : 'version.h', configuration : version_conf)
|
configure_file(output : 'version.h', configuration : version_conf)
|
||||||
|
|
||||||
subdir('mme')
|
subdir('mme')
|
||||||
subdir('hss')
|
if get_option('mongodb')
|
||||||
|
subdir('hss')
|
||||||
|
endif
|
||||||
subdir('sgwc')
|
subdir('sgwc')
|
||||||
subdir('sgwu')
|
subdir('sgwu')
|
||||||
subdir('pcrf')
|
subdir('pcrf')
|
||||||
|
|
|
@ -187,8 +187,14 @@ int esm_handle_information_response(mme_sess_t *sess,
|
||||||
|
|
||||||
if (rsp->presencemask &
|
if (rsp->presencemask &
|
||||||
OGS_NAS_EPS_ESM_INFORMATION_RESPONSE_ACCESS_POINT_NAME_PRESENT) {
|
OGS_NAS_EPS_ESM_INFORMATION_RESPONSE_ACCESS_POINT_NAME_PRESENT) {
|
||||||
sess->session = mme_session_find_by_apn(
|
ogs_session_t *session = mme_session_find_by_apn(
|
||||||
mme_ue, rsp->access_point_name.apn);
|
mme_ue, rsp->access_point_name.apn);
|
||||||
|
if (session) {
|
||||||
|
sess->session = session;
|
||||||
|
} else {
|
||||||
|
ogs_error(" APN[%s] not found, using default!", rsp->access_point_name.apn);
|
||||||
|
sess->session = mme_default_session(mme_ue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rsp->presencemask &
|
if (rsp->presencemask &
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019-2022 by Sukchan Lee <acetcom@gmail.com>
|
||||||
|
*
|
||||||
|
* This file is part of Open5GS.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef MESON_DUMMY_H
|
||||||
|
#define MESON_DUMMY_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct dummy_bson;
|
||||||
|
typedef struct dummy_bson bson_t;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* MESON_DUMMY_H */
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
|
||||||
|
#include "meson_dummy.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue