2023-08-24 15:02:45 +00:00
|
|
|
# Osmocom DIAMETER -> GSUP translator
|
2022-02-18 11:41:21 +00:00
|
|
|
|
|
|
|
This project implements a proxy translating Diameter into GSUP, hence allowing
|
|
|
|
Diameter clients connecting to GSUP server. This allows, for instance, using
|
|
|
|
OsmoHLR as an HSS used by 4G/5G nodes.
|
|
|
|
|
2023-08-24 15:02:45 +00:00
|
|
|
## Building
|
2022-02-18 11:41:21 +00:00
|
|
|
|
|
|
|
Install erlang and rebar3 packages (not "rebar", that's version 2! You may need
|
|
|
|
to compile it from source in some distros).
|
|
|
|
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
2022-02-18 11:41:21 +00:00
|
|
|
$ rebar3 compile
|
|
|
|
$ rebar3 escriptize
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
2022-02-18 11:41:21 +00:00
|
|
|
|
2023-08-24 15:02:45 +00:00
|
|
|
## Testing
|
2022-02-18 11:41:21 +00:00
|
|
|
|
|
|
|
Unit tests can be run this way:
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
2022-02-18 11:41:21 +00:00
|
|
|
$ rebar3 eunit
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
2022-02-18 11:41:21 +00:00
|
|
|
|
2023-08-24 15:02:45 +00:00
|
|
|
## Running
|
2022-02-18 11:41:21 +00:00
|
|
|
|
2022-04-05 09:27:29 +00:00
|
|
|
Once osmo\_dia2gsup is built, you can start it this way:
|
2022-02-18 11:41:21 +00:00
|
|
|
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
2022-02-18 11:41:21 +00:00
|
|
|
$ rebar3 shell
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Passing a config file:
|
2022-02-18 11:41:21 +00:00
|
|
|
|
2022-04-05 09:27:29 +00:00
|
|
|
```
|
2023-08-24 15:02:45 +00:00
|
|
|
$ rebar3 shell --config ./examples/sys.config
|
2022-04-05 09:27:29 +00:00
|
|
|
```
|
|
|
|
|
2023-08-24 15:02:45 +00:00
|
|
|
Running it as an escript:
|
2023-08-24 14:49:03 +00:00
|
|
|
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
2023-08-24 14:49:03 +00:00
|
|
|
$ rebar3 escriptize
|
|
|
|
$ ERL_FLAGS='-config ./examples/sys.config' _build/default/bin/osmo-dia2gsup
|
2023-08-24 15:02:45 +00:00
|
|
|
```
|
2023-07-26 01:02:09 +00:00
|
|
|
|
|
|
|
## Build a new release
|
|
|
|
|
|
|
|
rebar3 release
|
|
|
|
|