docker-playground/osmo-cn-latest
Pau Espin 7c0bb4e341 Explicitly configure ASPs asp-clnt-* as role=asp & sctp-role=client
Until recently, the asp-clnt-* ASPs, which have specific handling in osmo_sccp_simple_client_on_ss7_id(),
were being always forcedly set to sctp-role CLIENT by code in that
function.
This prevented user of that API from explicitly configuring the ASP as
"sctp-role server" through the VTY as the option would be overwritten silently.

Now, the sctp-role from config is followed if the ASP is
defined/configured through the VTY (not dynamically created at the time
osmo_sccp_simple_client_on_ss7_id() is called).

Since the default for a VTY-specified ASP is to be in "sctp-role
server", the config files need to be updated to properly configure the
ASP to be in "sctp-role client", which is the desired mode here.

Same applies for "role", where the default is SG but it is actually used
as "ASP" here.

Change-Id: Idf84502ffa199926a5f0ee616313b515743811ab
Depends: osmo-ttcn3-hacks.git Change-Id I4eb5b5f6b4b24df079b4c74e2a2e2ebb8769b0bd
2023-06-08 19:20:46 +02:00
..
runit osmo-cn-latest: Let osmo-hlr upgrade the db scheme 2019-07-24 17:35:04 +02:00
Dockerfile osmo-*-latest: use OSMOCOM_REPO_VERSION 2021-05-04 09:30:48 +02:00
Makefile Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
README osmo-cn-latest: Clarify steps for provisioning 2019-03-28 13:22:22 +01:00
osmo-ggsn.cfg Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
osmo-hlr.cfg Add first osmo-cn-latest image 2019-03-28 13:22:22 +01:00
osmo-mgw.cfg osmo-mgw: Use DSCP value in valid range (<= 63) 2021-04-28 19:28:36 +02:00
osmo-msc.cfg Explicitly configure ASPs asp-clnt-* as role=asp & sctp-role=client 2023-06-08 19:20:46 +02:00
osmo-msc.cfg.base Explicitly configure ASPs asp-clnt-* as role=asp & sctp-role=client 2023-06-08 19:20:46 +02:00
osmo-sgsn.cfg remove deprecated 'logging level all everything' from configs 2021-04-25 13:11:03 +02:00
osmo-stp.cfg remove deprecated 'logging level all everything' from configs 2021-04-25 13:11:03 +02:00
provision-hlr.py osmo-cn-latest: Rename the script to provision the hlr 2019-03-28 13:22:22 +01:00
run.sh docker kill: wait until containers are stopped 2023-03-07 09:02:02 +00:00

README

You need a csv with the simcard data and osmo-config-merge needs to be in your
path.

To create hlr.db and change the mcc/mnc run:
./provision_hlr.py --mcc 901 --mnc 23 source.csv

This will create the hlr.db and a simcards.csv where the first digits of the
IMSI will be changed to match the MCC/MNC. In order to reprogram the IMSIs of
the SIM cards run pySim-prog:

./pySim-prog.py -p 0 -t sysmoUSIM-SJS1 --source=csv --read-csv=simcards.csv --read-iccid

This is only needed if the mcc/mnc options are used.