aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_mgcp_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-07 10:52:48 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:12 +0800
commitbba593406b8015f5808b3e9fdff990c22c324b1f (patch)
treec1a6f3103796f50758929836b5eca02e4c047b88 /openbsc/src/nat/bsc_mgcp_utils.c
parentaf0ff6c46a2e32d2ab885c0bed1f66c3179cf48e (diff)
nat: Allow to realloc already allocated endpoints
E.g. when the MGCP on the BSS is not responding we could block all of our endpoints. As we are mostly in the middle and forward bits we will happily reallocate the endpoints.
Diffstat (limited to 'openbsc/src/nat/bsc_mgcp_utils.c')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 435c8584b..81465cae9 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -457,6 +457,7 @@ int bsc_mgcp_init(struct bsc_nat *nat)
nat->mgcp_cfg->audio_payload = -1;
nat->mgcp_cfg->data = nat;
nat->mgcp_cfg->policy_cb = bsc_mgcp_policy_cb;
+ nat->mgcp_cfg->force_realloc = 1;
nat->bsc_endpoints = talloc_zero_array(nat,
struct bsc_endpoint,
nat->mgcp_cfg->number_endpoints + 1);