diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 14:37:03 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 19:40:53 +0100 |
commit | 1f0c5b47426b4236ae0c91c71bc0d14a157f222f (patch) | |
tree | ef10bc6a84e9618220d90738410267db8e4b39be /openbsc/tests | |
parent | 74e61110e5f8231dd11a921252157dd924aefce6 (diff) |
mgcp: Allocate the endpoints for the E1 trunks as well.
Diffstat (limited to 'openbsc/tests')
-rw-r--r-- | openbsc/tests/mgcp/mgcp_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c index c63a7860f..4052377ec 100644 --- a/openbsc/tests/mgcp/mgcp_test.c +++ b/openbsc/tests/mgcp/mgcp_test.c @@ -18,6 +18,7 @@ */ #include <openbsc/mgcp.h> +#include <openbsc/mgcp_internal.h> #include <osmocore/talloc.h> #include <string.h> @@ -48,7 +49,9 @@ static void test_auep(void) struct msgb *msg; struct mgcp_config *cfg = mgcp_config_alloc(); cfg->trunk.number_endpoints = 64; - mgcp_endpoints_allocate(cfg); + mgcp_endpoints_allocate(&cfg->trunk); + + mgcp_endpoints_allocate(mgcp_trunk_alloc(cfg, 1)); inp = create_auep1(); msg = mgcp_handle_message(cfg, inp); |