diff --git a/osmo-nitb-master/Dockerfile b/osmo-nitb-master/Dockerfile index c7fb008a..3e20ec88 100644 --- a/osmo-nitb-master/Dockerfile +++ b/osmo-nitb-master/Dockerfile @@ -42,6 +42,8 @@ RUN cd openbsc/openbsc && \ VOLUME /data COPY openbsc.cfg /data/openbsc.cfg +COPY osmo-bsc-nat.cfg /data/osmo-bsc-nat.cfg +COPY bscs.config /data/bscs.config WORKDIR /data CMD ["/usr/local/bin/osmo-nitb"] diff --git a/osmo-nitb-master/bscs.config b/osmo-nitb-master/bscs.config new file mode 100644 index 00000000..16cfa2ba --- /dev/null +++ b/osmo-nitb-master/bscs.config @@ -0,0 +1,22 @@ +nat + bsc 0 + token BSC0 + location_area_code 1 + description bsc + max-endpoints 32 + paging forbidden 0 + osmux on + bsc 1 + token BSC1 + location_area_code 2 + description bsc + max-endpoints 32 + paging forbidden 0 + osmux on + bsc 2 + token BSC2 + location_area_code 3 + description bsc + max-endpoints 32 + paging forbidden 0 + osmux on diff --git a/osmo-nitb-master/osmo-bsc-nat.cfg b/osmo-nitb-master/osmo-bsc-nat.cfg new file mode 100644 index 00000000..0179a94a --- /dev/null +++ b/osmo-nitb-master/osmo-bsc-nat.cfg @@ -0,0 +1,41 @@ +! +! OsmoBSCNAT (0.12.0.266-2daa9) configuration saved from vty +!! +! +log file /data/osmo-bsc_nat.log + logging filter all 1 + logging color 0 + logging print category 1 + logging timestamp 1 + logging print extended-timestamp 1 + logging level force-all debug +! +line vty + no login + bind 0.0.0.0 +! +mgcp + bind ip 0.0.0.0 + bind port 2427 + rtp bts-base 4000 + rtp net-base 16000 + rtp ip-dscp 0 + no rtcp-omit + sdp audio-payload number 126 + sdp audio-payload name AMR/8000 + loop 0 + number endpoints 32 + call-agent ip 127.0.0.1 + rtp transcoder-base 0 + transcoder-remote-base 4000 +nat + msc ip 127.0.0.1 + msc port 5100 + token foo + timeout auth 2 + timeout ping 20 + timeout pong 5 + ip-dscp 0 + bscs-config-file bscs.config + access-list msceven imsi-allow ^[0-9]*[24680]$ + access-list mscodd imsi-allow ^[0-9]*[13579]$