commit | 9d032c350cc6d0f7abd301b93cd29a2bdc59f30c | [log] [tgz] |
---|---|---|
author | Pau Espin Pedrol <pespin@sysmocom.de> | Thu Aug 24 16:49:03 2023 +0200 |
committer | Pau Espin Pedrol <pespin@sysmocom.de> | Thu Aug 24 16:49:03 2023 +0200 |
tree | 6bb3390120b836a54a2c7ff85f1ddeed028dc10b | |
parent | f8258efa3f2dd6101d36e3ffefbe15ec10451e16 [diff] |
README.md: Document how to run escript with config file Change-Id: Icc78f4bd22608ad0c8a2c5f6095cd77543ab2048
= Osmocom DIAMETER -> GSUP translator =
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.
== Building ==
Install erlang and rebar3 packages (not "rebar", that's version 2! You may need to compile it from source in some distros).
$ rebar3 compile $ rebar3 escriptize
== Testing ==
Unit tests can be run this way: $ rebar3 eunit
== Running ==
Once osmo_dia2gsup is built, you can start it this way:
$ rebar3 shell
In the erlang shell:
1> osmo_dia2gsup:start().
== Configuration ==
$ rebar3 shell --config ./examples/sys.config
1> osmo_dia2gsup:start().
== Run as an escript ==
$ rebar3 escriptize $ ERL_FLAGS='-config ./examples/sys.config' _build/default/bin/osmo-dia2gsup