diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-07-26 13:11:27 +0200 |
---|---|---|
committer | dexter <pmaier@sysmocom.de> | 2021-09-03 15:03:38 +0000 |
commit | 8d22e6870637ed6d392a8a77aeaebc51b23a8a50 (patch) | |
tree | e7dca48bc1cfd7a319d3915e93147ba017a0e5d7 /tests | |
parent | 034cc1216a2938ac52c82ff1dafaa78d527e3b48 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handover/handover_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <osmocom/bsc/bts.h> #include <osmocom/bsc/paging.h> #include <osmocom/bsc/vty.h> +#include <osmocom/mgcp_client/mgcp_client_pool.h> #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(); |