diff --git a/net/config_2g3g b/net/config_2g3g index 379f505..6111b24 100644 --- a/net/config_2g3g +++ b/net/config_2g3g @@ -96,6 +96,10 @@ MGW4BSC1_IP="127.0.0.11" MGW4BSC1_PORT="2427" MGW4BSC1_VTY_IP="127.0.0.11" +MGW4BSCNAT_IP="127.0.0.14" +MGW4BSCNAT_PORT="2427" +MGW4BSCNAT_VTY_IP="127.0.0.14" + BSC_COUNT=1 BSC0_IP="${TO_RAN_IP}" diff --git a/net/templates/osmo-mgw-for-bsc-nat.cfg b/net/templates/osmo-mgw-for-bsc-nat.cfg new file mode 100644 index 0000000..d0ef957 --- /dev/null +++ b/net/templates/osmo-mgw-for-bsc-nat.cfg @@ -0,0 +1,16 @@ +${include(common_template_warning)} +mgcp + domain bscnat + bind ip ${MGW4BSCNAT_IP} + bind port ${MGW4BSCNAT_PORT} + rtp net-range 50004 60000 + number endpoints 1024 +line vty + bind ${MGW4BSCNAT_VTY_IP} + +${foreach(LOG_OUTPUT)} +log ${LOG_OUTPUTn_TYPE} +${include(common_logging)} + logging level rtp info + logging level lmgcp info +${foreach_end} diff --git a/net/templates/run.sh b/net/templates/run.sh index 29e5347..3165f53 100755 --- a/net/templates/run.sh +++ b/net/templates/run.sh @@ -244,6 +244,7 @@ if [ "${STP_CN_IP}" = "${STP_RAN_IP}" ]; then else term "$stp4cn" STP4CN term "$stp4ran" STP4RAN + term "$mgw -c osmo-mgw-for-bsc-nat.cfg" MGW4BSCNAT term "$bscnat" BSCNAT fi