From 8d22e6870637ed6d392a8a77aeaebc51b23a8a50 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Mon, 26 Jul 2021 13:11:27 +0200 Subject: osmo_bsc_main: integrate MGW pooling into osmo-bsc Since the libosmo-mgcp-client now supports MGW pooling, lets use this feature in osmo-bsc. Large RAN installations may benefit from distributing the RTP voice stream load on multiple media gateways. Depends: osmo-mgw Icaaba0e470e916eefddfee750b83f5f65291a6b0 Change-Id: I8f33ab2cea04b545c403a6fe479aa963a0fc0d0d Related: SYS#5091 --- tests/handover/handover_test.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index f76a70071..a355d3b0e 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -52,6 +52,7 @@ #include #include #include +#include #include "../../bscconfig.h" @@ -1617,6 +1618,12 @@ int main(int argc, char **argv) if (!bsc_gsmnet) exit(1); + /* The MGCP client which is handling the pool (mgcp_client_pool_vty_init) is used from the bsc_vty_init, so + * we must allocate an empty mgw pool even though we do not need it for this test. */ + bsc_gsmnet->mgw.mgw_pool = mgcp_client_pool_alloc(bsc_gsmnet); + if (!bsc_gsmnet->mgw.mgw_pool) + exit(1); + vty_init(&vty_info); bsc_vty_init(bsc_gsmnet); ho_test_vty_init(); -- cgit v1.2.3