Fork 0
Commit Graph

39 Commits

Author SHA1 Message Date
Oliver Smith 83e2af672c Update README.md 2023-08-24 15:09:15 +00:00
Oliver Smith 71ad997840 Update README.md 2023-08-24 15:03:12 +00:00
Pau Espin f8258efa3f rebar3.lock: Update epcap dep to v1.1.1 to fix compilation error
Fixes compilation error at build time:
/git/erlang/osmo_dia2gsup/_build/default/lib/epcap/c_src/epcap.c:31:10: fatal error: ei.h: No such file or directory

Related: OS#6141
Change-Id: I033f0e8882cb64c596c6f2802a1f90b3cfeed621
2023-08-23 16:48:50 +02:00
Alexander Couzens 7c912ff07b Use GSUP APN as Service-Selection field
Previous the osmo-hlr always sent a wildcard APN as the only APN
which violates the spec. Further wildcard APNs aren't support
by the current Open5gs.
Since I540132ee5dcfd09f4816e02e702927e1074ca50f the osmo-hlr
supports multiple APN in the subscriber data.

Related: SYS#6391
Change-Id: I2a0af5d785ce62968f6e3952602d92cb4f37e4ab
2023-06-11 19:27:57 +00:00
Oliver Smith d7e225b098 systemd: depend on networking-online.target
Related: SYS#6400
Change-Id: I9c0cc0779f9ddb7520a565668b7cde07c6ad55d8
2023-05-26 14:10:44 +02:00
Oliver Smith 2f173b712e debian: set compat level to 10
Related: OS#5958
Change-Id: I49fcc4fe9d3e795f8c3514d35ff3e2beca2917d1
2023-04-25 16:48:34 +02:00
Alexander Couzens 1b6291e313 docs: add a simple example to use configuration file
Change-Id: I013f03779508bc3ee5bb378c357a5c94b40b74a0
2023-03-22 13:23:02 +00:00
Alexander Couzens b88b1564fc contrib/generate_build_dep.sh: remove erlang bytecode from checkouts
The checkout directory should only contains source and no erlang bytecode.
Otherwise it might not compile when creating the build_dep.tar.gz on a machine
with newer erlang and try to build the package on a system with older erlang.

Change-Id: I101119392c6d0fad264c2551fded10288c87da5e
2022-08-30 12:54:20 +00:00
Daniel Willmann 742f8d5b0f Release new version: 0.1.2
Fixes: OS#5646
Change-Id: I2b71212009149ea46effecb08d96620cc67c944b
2022-08-19 17:45:45 +02:00
Matt Johnson 9e0bd808bf server_cb: Improve handling resynchronization info
This commit improves handling of the resynchronization information in
a DIAMETER request from a UE that has a sync failure. It factors
parsing of the resync info into a helper function with a defined spec,
and handles the resynchronization info as a binary rather than a

Change-Id: I2aad313d4d37d07040bc5344de3a023d34fd8ded
2022-08-19 15:20:38 +00:00
Oliver Smith 6e28afb504 Bump version: 0.1.1
Change-Id: I30c104822a96d14f80cad320b801149f38b886b7
2022-07-22 12:52:24 +02:00
Alexander Couzens c243463bf7 debian: add generate_build_dep.sh to vendor erlang dependencies
To build on OBS the source package must include all dependencies.
Downloading dependencies isn't allowed. generate_build_dep.sh will
download all dependencies.
The jenkins job to update OBS should do this before calling
`dpkg-buildpackage -S` to build a source package.

Related: SYS#6006
Change-Id: I22041887fd1b72ea328605d18801d412b86bfc9c
2022-07-20 19:51:00 +00:00
Alexander Couzens 700979a5b1 debian: rework packaging
- use the rebar3' debian/rules as template
- use override targets instead of the exact targets
- only install the escriptize osmo_dia2gsup file

Related: SYS#6006
Change-Id: I40add168875de87ef0cc62deeb5377d2ce080e45
2022-07-20 19:51:00 +00:00
Alexander Couzens a9faa72537 debian: add missing Build-Depends debhelper
Related: SYS#6006
Change-Id: I1b5774983d705c54c909823da329068a7aa0a9a8
2022-07-20 19:51:00 +00:00
Alexander Couzens 1c4347432d add rebar.lock to define known working dependencies
The rebar.lock contains the last known working state
of all dependencies with exact version numbers.
rebar.config only holds the minimal dependencies (package x version >=2.0.0)

Related: SYS#6006
Change-Id: I40660b23cee04ef2b4afbca34522a42a4b057e2e
2022-07-20 19:51:00 +00:00
Daniel Willmann 9ff2e8452b diameter: Change default bind IP to
The IP is already used by the open5gs smf. Since the mme by default
tries to connect to the hss at let's change the default here
to something that works ootb.

Change-Id: Ibe36e86e6473caab753308837b2ced0f1b53e1f2
2022-07-20 17:49:58 +02:00
Oliver Smith 173095f9fa debian: add packaging
Add initial debian packaging and a systemd service that starts
osmo_dia2gsup. Given that dependencies listed in rebar.lock are not
packaged in debian 11, this just uses rebar3 to download and compile
the dependencies during the build.

Resulting erlang files are installed to the following path, where they
become available in the erlang shell (erl):

Related: SYS#6006
Change-Id: Ic55bca1260f992d0ed8583e7c7fe948ba0160d4d
2022-07-15 15:08:51 +02:00
Harald Welte 9491cf41d0 Add osmo_ss7 and osmo_gsup as dependencies to .app.src file
We are depending on those applications, so they should be listed.

Change-Id: I4a19439dff362f24efc108ee7b0790b143692d2f
2022-07-12 17:42:55 +02:00
Harald Welte f1ba878b15 rebar.config: Switch from git://git.osmocom.org to https://gitea
The old git URLs are still kept for compatibility, but we should
use the official git repository (now in gitea).

Change-Id: If9b70c42753e17f957241fe9be514163aee9e22d
2022-07-12 17:42:55 +02:00
Daniel Willmann f24be49fc4 Add main/1 so rebar2 escriptize works
Change-Id: Ifc3a58d09fbf5b9f36595515f47223a45ef13ba1
2022-07-12 17:42:55 +02:00
Daniel Willmann 592cc8bc19 server_cb: Fix issue with Erlang/OTP 24
Erlang/OTP 24 dropped crypto:hmac, so use crpyto:mac(hmac, ...) instead.

See https://github.com/riverrun/one_time_pass_ecto/issues/9

Change-Id: I7d916eb1f1435b3ac3fc362bb2f4daa7bbb8bb1a
2022-04-23 14:53:10 +02:00
Pau Espin bf59e9dc7e Add README.md file
Change-Id: I65ebd735d3c99c47b8f1a88c5a7eb272635d52c3
2022-02-18 12:43:52 +01:00
Pau Espin e88dc911a9 .gitignore: Add several more files and directories
Change-Id: Ib5ec638be322b59c8390aae61425f069d2e528f8
2022-02-18 12:43:47 +01:00
Alexander Couzens ee090f4773 switch back to use the master branch of osmo_ss7
Add the missing ipa_ccm_options record to use the new api

Change-Id: I89ff055ed84e394d0f25bc6389d1f4d757f7b92b
2022-02-15 19:24:50 +01:00
Harald Welte a560adee95 upgrade to lager 3.9.1 (fix builds with Erlang/OTP 24)
Change-Id: I704855533caf00046aa046d2ac9358adeadbca31
2022-02-15 19:24:50 +01:00
Alexander Couzens c57f8cc0b9 add .gitreview configuration
Change-Id: I2bf183f46ca1cb62be982ddc32bd249bfdf1ca86
2021-12-30 20:47:24 +01:00
Oliver Smith 47d080fa01 contrib/jenkins.sh: new file
Related: OS#4345
Change-Id: I688b71271fe80b4ec05304e9ed8abc8707cb7b58
2020-01-17 09:01:18 +01:00
Harald Welte 388d387dcc Send supported and current RAT type in GSUP to OsmoHLR
Particularly the CURRENT_RAT_TYPE is what tells OsmoHLR to provide
tuples with AMF separation bit for EUTRAN, and not foe GERAN/UTRAN.
2019-12-01 17:03:15 +01:00
Harald Welte 6f5290846f cosmetic: fix copy+paste mistake in comment 2019-08-21 14:54:27 +02:00
Harald Welte 332fe7ff8b Implement UMTS AKA re-sync support (untested) 2019-08-20 22:36:50 +02:00
Harald Welte e795af37f8 tolerate GSUP disconnects 2019-08-20 21:07:10 +02:00
Harald Welte 299ba939ab first working version translating both AIR/AIA and ULR/ULA 2019-08-15 18:31:12 +02:00
Harald Welte 51f47c0f56 add missing gsup_client.erl 2019-08-14 13:30:49 +02:00
Harald Welte 44da7d743f WIP 2019-08-14 13:28:08 +02:00
Harald Welte 49248de1f9 try to resolve duplicates btween 29.229 and 29.329
The travelping diameter files appear to define a number of AVPs
originating in 29.229 in the 29.329 .dia file, let's try to
resolve this and avoid diameteerc complaining about AVPs being
defined in two locations.
2019-08-10 22:58:39 +02:00
Harald Welte 61276c4170 fixup 2019-08-10 22:58:39 +02:00
Harald Welte d19e33fd5e import 3GPP DIAMETER related definitions from travelping/erggw_aaa
There are some dependencies of TS 29.272 which we can inherit from

The version used was from git commit a5d5a93e2ef87f4168c676ee9a6d8300beb729d8
2019-08-10 22:09:19 +02:00
Harald Welte c83d2fe056 fixup own 2019-08-10 22:09:19 +02:00
Harald Welte 8fb759da80 initial check-in of HSS related 3GPP DIAMETER definitions
... including those dependencies I couldn't find
2019-08-10 21:09:17 +02:00