From 7e0cc50e44d89dd2b656521f693599a1f3dc7416 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 25 Feb 2011 12:43:58 +0100 Subject: 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. --- openbsc/tests/bsc-nat/bsc_data.c | 8 ++++---- openbsc/tests/bsc-nat/bsc_nat_test.c | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'openbsc/tests') diff --git a/openbsc/tests/bsc-nat/bsc_data.c b/openbsc/tests/bsc-nat/bsc_data.c index 3cc22af7e..04755233c 100644 --- a/openbsc/tests/bsc-nat/bsc_data.c +++ b/openbsc/tests/bsc-nat/bsc_data.c @@ -171,11 +171,11 @@ static const uint8_t cc_setup_national[] = { }; static const uint8_t cc_setup_national_patched[] = { - 0x00, 0x22, 0xfd, 0x06, 0x01, 0x12, - 0x6d, 0x00, 0x01, 0x1b, 0x01, 0x00, 0x18, 0x03, + 0x00, 0x21, 0xfd, 0x06, 0x01, 0x12, + 0x6d, 0x00, 0x01, 0x1a, 0x01, 0x00, 0x17, 0x03, 0x05, 0x04, 0x06, 0x60, 0x04, 0x02, 0x00, 0x05, - 0x81, 0x5e, 0x08, 0x81, 0x00, 0x94, 0x71, 0x32, - 0x33, 0x66, 0xf6, 0x15, 0x02, 0x11, 0x01 + 0x81, 0x5e, 0x07, 0x91, 0x94, 0x71, 0x32, 0x33, + 0x66, 0xf6, 0x15, 0x02, 0x11, 0x01 }; static const uint8_t cc_setup_international[] = { 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); -- cgit v1.2.3