config_neels

Change-Id: Ia801ca94a519ee4a80d94dd52e8998ed481c4796
This commit is contained in:
Neels Hofmeyr 2019-03-04 00:40:18 +01:00
parent 270f8b3bb0
commit 9dbd7e64d9
3 changed files with 132 additions and 10 deletions

122
net/config_neels Normal file
View File

@ -0,0 +1,122 @@
ETH_DEV=eth0
APN_DEV=apn0
TO_RAN_IP="192.168.178.74"
TO_RAN_IU_IP="192.168.178.66"
TO_SIP_IP=${TO_RAN_IP}
STATSD_IP="127.0.0.1"
MCC=262
MNC=42
TCH_TYPE1=TCH/F
TCH_TYPE=TCH/F
BTS_BAND=GSM-1800
BTS_LAC=23
BTS_MAX_POWER_RED=22
BTS_CODEC_SUPPORT=fr efr hr amr
BTS_200mW=23
BTS0_DESCRIPTION="sysmobts-57-bts0"
BTS0_IPA_UNIT="57 0"
BTS0_ARFCN=512
BTS0_CI=${BTSn}
BTS0_BSIC=${BTSn}
BTS0_GPRS_MODE=gprs
BTS0_GB_REMOTE_IP=${SGSN_IP}
BTS0_GB_REMOTE_PORT=${SGSN_GB_PORT}
BTS0_NSVCI=${BTSn}
BTS0_NSEI="${BTSn_NSVCI}"
# according to osmo-bsc vty, BVCI must be >= 2
BTS0_BVCI="100${BTSn}"
BTS0_BAND=${BTS_BAND}
BTS0_LAC=${BTS_LAC}
BTS0_MAX_POWER_RED=${BTS_MAX_POWER_RED}
BTS0_NOMINAL_POWER=${BTS_200mW}
BTS0_CODEC_SUPPORT=${BTS_CODEC_SUPPORT}
BTS1_DESCRIPTION="sysmobts-95-bts1"
BTS1_IPA_UNIT="95 0"
BTS1_ARFCN=514
BTS1_CI=${BTSn}
BTS1_BSIC=${BTSn}
BTS1_GPRS_MODE=gprs
BTS1_GB_REMOTE_IP=${SGSN_IP}
BTS1_GB_REMOTE_PORT=${SGSN_GB_PORT}
BTS1_NSVCI=${BTSn}
BTS1_NSEI="${BTSn_NSVCI}"
BTS1_BVCI="100${BTSn}"
BTS1_BAND=${BTS_BAND}
BTS1_LAC=${BTS_LAC}
BTS1_MAX_POWER_RED=${BTS_MAX_POWER_RED}
BTS1_NOMINAL_POWER=${BTS_200mW}
BTS1_CODEC_SUPPORT=${BTS_CODEC_SUPPORT}
HLR_IP=127.0.0.1
MSC_PC="0.23.1"
MSC_MNCC_SOCKET="/tmp/mncc_socket"
#MSC_MNCC="internal"
MSC_MNCC="external ${MSC_MNCC_SOCKET}"
AUTH=required
ENCR_A5=3
SGSN_IP="${TO_RAN_IP}"
SGSN_PC="0.23.2"
SGSN_GB_PORT=23000
GBPROXY_IP="${TO_RAN_IP}"
GBPROXY_GB_PORT=7777
PCU_GB_LOCAL_PORT=23000
MGW4MSC_IP="${TO_RAN_IU_IP}"
MGW4MSC_PORT="2427"
MGW4MSC_VTY_IP="127.0.0.1"
MGW4BSC_IP="${TO_RAN_IP}"
MGW4BSC_PORT="2427"
MGW4BSC_VTY_IP="127.0.0.2"
BSC_IP="${TO_RAN_IP}"
BSC_PC="0.23.3"
BSC_CODEC_LIST="fr3 fr2 fr1 hr3 hr1"
HNBGW_PC="0.3.0"
HNBGW_IP="${TO_RAN_IP}"
HNODEB0_IP="192.168.178.67"
HNODEB0_UARFCN=4357
HNODEB0_SCRAMBLE=157
HNODEB0_LAC=1${HNODEB0_UARFCN}
HNODEB0_RAC=11
HNODEB1_IP="192.168.2.21"
HNODEB1_UARFCN=4358
HNODEB1_SCRAMBLE=258
HNODEB1_LAC=1${HNODEB1_UARFCN}
HNODEB1_RAC=22
GGSN_IP="${TO_RAN_IU_IP}"
GGSN_DNS0="192.168.0.1"
GGSN_DNS1="9.9.9.9"
GGSN_NET="192.168.42.0/24"
GGSN_GTP_STATE_DIR=/tmp
# Enabled only when MSC_MNCC != "internal"
SIPCON_LOCAL="${TO_SIP_IP}"
SIPCON_LOCAL_PORT="5060"
SIPCON_REMOTE="${TO_SIP_IP}"
SIPCON_REMOTE_PORT="5069"
# SIPCON_SERVER:
# "kamailio" -- launch kamailio
# "freeswitch" -- launch freeswitch
# "none" -- launch no server, use remotely running SIP server
SIPCON_SERVER="kamailio"
LOG_OUTPUT0_TYPE=stderr
LOG_OUTPUT1_TYPE=file current_log/${_name}.log
LOG_OUTPUT2_TYPE=gsmtap 127.0.0.1

View File

@ -40,10 +40,10 @@ ${foreach(BTS)}
cell_identity ${BTSn_CI}
base_station_id_code ${BTSn_BSIC}
codec-support ${BTSn_CODEC_SUPPORT}
amr tch-f modes 3
amr tch-f start-mode 3
amr tch-h modes 3
amr tch-h start-mode 3
amr tch-f modes 7
amr tch-f start-mode 1
amr tch-h modes 0 3
amr tch-h start-mode auto
gprs mode ${BTSn_GPRS_MODE}
gprs nsvc 0 remote ip ${BTSn_GB_REMOTE_IP}
gprs nsvc 0 remote udp port ${BTSn_GB_REMOTE_PORT}
@ -62,7 +62,7 @@ ${foreach(BTS)}
timeslot 1
phys_chan_config SDCCH8
timeslot 2
phys_chan_config ${TCH_TYPE}
phys_chan_config ${TCH_TYPE1}
timeslot 3
phys_chan_config ${TCH_TYPE}
timeslot 4
@ -81,12 +81,12 @@ msc 0
mgw endpoint-domain bsc
allow-emergency deny
codec-list ${BSC_CODEC_LIST}
amr-config 12_2k forbidden
amr-config 12_2k allowed
amr-config 10_2k forbidden
amr-config 7_95k forbidden
amr-config 7_40k forbidden
amr-config 6_70k allowed
amr-config 5_90k allowed
amr-config 6_70k forbidden
amr-config 5_90k forbidden
amr-config 5_15k forbidden
amr-config 4_75k forbidden

View File

@ -65,13 +65,13 @@ term() {
find_term
hnbgw="osmo-hnbgw"
msc="gdb -ex run --args $(which osmo-msc)"
#msc="gdb -ex run --args $(which osmo-msc)"
# To enable udtrace on osmo-msc MNCC socket, use this with adjusted /path/to/udtrace:
# - LD_LIBRARY_PATH allows linking to titan if udtrace was compiled with titan support.
# - LD_PRELOAD of libasan allows building osmo-msc with the sanitize.opts.
# - the tee saves the stderr logging as well as the udtrace output to new file current_log/osmo-msc.out, since udtrace
# will not show in osmo-msc.log
#msc="LD_LIBRARY_PATH=/usr/lib/titan LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.5:/path/to/udtrace/libudtrace.so osmo-msc 2>&1 | tee -a current_log/osmo-msc.out"
msc="LD_LIBRARY_PATH=/usr/lib/titan LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.5:/n/s/udtrace/libudtrace.so osmo-msc 2>&1 | tee -a current_log/osmo-msc.out"
gbproxy="osmo-gbproxy"
sgsn="osmo-sgsn"
ggsn="osmo-ggsn"