aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-09-03 11:16:16 +0200
committerlaforge <laforge@osmocom.org>2021-09-04 19:41:17 +0000
commit3da59936be660dfc11e393a659ea57cd35a46bb3 (patch)
tree415af8c1a72cb6bbd89ad4c84f79dd99aae86baf
parent8d22e6870637ed6d392a8a77aeaebc51b23a8a50 (diff)
osmo_bsc_msc: do not initalize MGCP proxy for AoIP MSCs
The MGCP proxy which is built into osmo-bsc is used to tunnel MGCP messages through an SCCP-lite link. This is an SCCP-lite specific implementation detail that is not present in SCCP/AoIP. Change-Id: Id3a8c45ae38d6b9d9c106a9e83b3cbfff919650d Related: SYS#5091
-rw-r--r--src/osmo-bsc/osmo_bsc_msc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bsc/osmo_bsc_msc.c b/src/osmo-bsc/osmo_bsc_msc.c
index a80ee64db..baef4e524 100644
--- a/src/osmo-bsc/osmo_bsc_msc.c
+++ b/src/osmo-bsc/osmo_bsc_msc.c
@@ -165,6 +165,10 @@ int osmo_bsc_msc_init(struct bsc_msc_data *msc)
uint16_t mgw_port;
int rc;
+ /* Everything below refers to SCCP-Lite MSC connections only. */
+ if (msc_is_aoip(msc))
+ return 0;
+
if (net->mgw.conf->remote_port >= 0)
mgw_port = net->mgw.conf->remote_port;
else