laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/27647 )

Change subject: docs: add a simple example to use configuration file
......................................................................

docs: add a simple example to use configuration file

Change-Id: I013f03779508bc3ee5bb378c357a5c94b40b74a0
---
M README.md
A examples/sys.config
2 files changed, 32 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/README.md b/README.md
index 52c076a..4b52070 100644
--- a/README.md
+++ b/README.md
@@ -19,9 +19,19 @@

 == Running ==

-Once osmo_dia2gsup is built, you can start it this way:
+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().
+```
+
diff --git a/examples/sys.config b/examples/sys.config
new file mode 100644
index 0000000..8814893
--- /dev/null
+++ b/examples/sys.config
@@ -0,0 +1,12 @@
+[{osmo_dia2gsup, [
+        {hlr_ip, "127.0.0.1"},
+        {hlr_port, 4222},
+
+        {diameter_ip, "127.0.0.4"},
+        {diameter_port, 3868},
+        {diameter_proto, sctp},
+
+        {origin_host, "hss.localdomain"},
+        {origin_realm, "localdomain"},
+        {vendor_id, 0}
+]}].

--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/27647
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: erlang/osmo_dia2gsup
Gerrit-Branch: master
Gerrit-Change-Id: I013f03779508bc3ee5bb378c357a5c94b40b74a0
Gerrit-Change-Number: 27647
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to