aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat/bsc_nat_test.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-25 12:43:58 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-25 17:30:48 +0100
commit7e0cc50e44d89dd2b656521f693599a1f3dc7416 (patch)
tree4eb63b7dda848a7f35d42a4b3eec3b654411f3c7 /openbsc/tests/bsc-nat/bsc_nat_test.c
parent867d69bbcb593bc475fe8c28cd5c9a7f630422c0 (diff)
nat: Update the tests to make them going again
We now need to have access to a mgcp_cfg and the change to the setup number patching needs new data. We now set the number to international type.
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_nat_test.c')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index 05b06e40f..c5edbfe1a 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -444,6 +444,9 @@ static void test_mgcp_ass_tracking(void)
nat->bsc_endpoints = talloc_zero_array(nat,
struct bsc_endpoint,
33);
+ nat->mgcp_cfg = mgcp_config_alloc();
+ nat->mgcp_cfg->number_endpoints = 64;
+
bsc = bsc_connection_alloc(nat);
bsc->cfg = bsc_config_alloc(nat, "foo");
bsc_config_add_lac(bsc->cfg, 2323);