From 5cdf42b1a4706b4aa3b6b0a98e3cb2b4eec46cd0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 7 Apr 2010 10:52:48 +0200 Subject: 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. --- openbsc/src/nat/bsc_mgcp_utils.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3